summaryrefslogtreecommitdiff
path: root/edk2/EmbeddedPkg
diff options
context:
space:
mode:
authoroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>2011-07-01 10:57:38 +0000
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>2011-07-01 10:57:38 +0000
commitd743af9c626a089f8e3ae3eee7bc97dbbef7853f (patch)
treea806a7d37c71e41572bb94c17a55959aff17f3ed /edk2/EmbeddedPkg
parent970616c4ac302f97fbb37e058259b10c7e980e27 (diff)
EmbeddedPkg/PrePiLib: Remove the performance measurements from the library
The PrePiLib should really be used for the PEI phase (not the SEC phase). It is the DXE core that take the tick for the end of the PEI phase. The Platform PrePi module should be responsible to take the tick when it starts for the PEI phase. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@11946 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'edk2/EmbeddedPkg')
-rw-r--r--edk2/EmbeddedPkg/Library/PrePiLib/PrePiLib.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/edk2/EmbeddedPkg/Library/PrePiLib/PrePiLib.c b/edk2/EmbeddedPkg/Library/PrePiLib/PrePiLib.c
index 643394fe1..e46cafec3 100644
--- a/edk2/EmbeddedPkg/Library/PrePiLib/PrePiLib.c
+++ b/edk2/EmbeddedPkg/Library/PrePiLib/PrePiLib.c
@@ -22,15 +22,10 @@ EFI_STATUS
EFIAPI
SecWinNtPeiLoadFile (
-
IN VOID *Pe32Data,
-
IN EFI_PHYSICAL_ADDRESS *ImageAddress,
-
IN UINT64 *ImageSize,
-
IN EFI_PHYSICAL_ADDRESS *EntryPoint
-
);
@@ -115,10 +110,6 @@ LoadDxeCoreFromFfsFile (
VOID *TopOfStack;
VOID *Hob;
EFI_FV_FILE_INFO FvFileInfo;
- UINT64 Tick;
-
- Tick = 0;
- PERF_START (NULL, "SEC", NULL, 1);
Status = FfsFindSectionData (EFI_SECTION_PE32, FileHandle, &PeCoffImage);
if (EFI_ERROR (Status)) {
@@ -144,12 +135,6 @@ LoadDxeCoreFromFfsFile (
if (StackSize == 0) {
// User the current stack
-
- if (PerformanceMeasurementEnabled ()) {
- Tick = GetPerformanceCounter ();
- }
- PERF_END (NULL, "SEC", NULL, Tick);
-
((DXE_CORE_ENTRY_POINT)(UINTN)EntryPoint) (Hob);
} else {
@@ -170,12 +155,6 @@ LoadDxeCoreFromFfsFile (
// Update the contents of BSP stack HOB to reflect the real stack info passed to DxeCore.
//
UpdateStackHob ((EFI_PHYSICAL_ADDRESS)(UINTN) BaseOfStack, StackSize);
-
-
- if (PerformanceMeasurementEnabled ()) {
- Tick = GetPerformanceCounter ();
- }
- PERF_END (NULL, "SEC", NULL, Tick);
SwitchStack (
(SWITCH_STACK_ENTRY_POINT)(UINTN)EntryPoint,