public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [patch] MdeModulePkg/PiSmmCore: Remove SMM Perf entry
@ 2018-06-27  6:16 Dandan Bi
  2018-06-27  6:16 ` [patch] MdeModulePkg/PerformanceLib: Add NULL pointer check Dandan Bi
  2018-06-27  6:59 ` [patch] MdeModulePkg/PiSmmCore: Remove SMM Perf entry Gao, Liming
  0 siblings, 2 replies; 4+ messages in thread
From: Dandan Bi @ 2018-06-27  6:16 UTC (permalink / raw)
  To: edk2-devel; +Cc: Liming Gao, Star Zeng

The perf measurement entry in SmmEntryPoint function
doesn't have significant meaning. So remove it now.

Cc: Liming Gao <liming.gao@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
---
 MdeModulePkg/Core/PiSmmCore/PiSmmCore.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/MdeModulePkg/Core/PiSmmCore/PiSmmCore.c b/MdeModulePkg/Core/PiSmmCore/PiSmmCore.c
index 45f40e0e60c..2fb401e47e7 100644
--- a/MdeModulePkg/Core/PiSmmCore/PiSmmCore.c
+++ b/MdeModulePkg/Core/PiSmmCore/PiSmmCore.c
@@ -642,12 +642,10 @@ SmmEntryPoint (
   BOOLEAN                     InLegacyBoot;
   BOOLEAN                     IsOverlapped;
   VOID                        *CommunicationBuffer;
   UINTN                       BufferSize;
 
-  PERF_INMODULE_BEGIN ("SMM");
-
   //
   // Update SMST with contents of the SmmEntryContext structure
   //
   gSmmCoreSmst.SmmStartupThisAp      = SmmEntryContext->SmmStartupThisAp;
   gSmmCoreSmst.CurrentlyExecutingCpu = SmmEntryContext->CurrentlyExecutingCpu;
@@ -736,12 +734,10 @@ SmmEntryPoint (
     //
     // Clear the InSmm flag as we are going to leave SMM
     //
     gSmmCorePrivate->InSmm = FALSE;
   }
-
-  PERF_INMODULE_END ("SMM");
 }
 
 /**
   Install LoadedImage protocol for SMM Core.
 **/
-- 
2.14.3.windows.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-06-27  7:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-27  6:16 [patch] MdeModulePkg/PiSmmCore: Remove SMM Perf entry Dandan Bi
2018-06-27  6:16 ` [patch] MdeModulePkg/PerformanceLib: Add NULL pointer check Dandan Bi
2018-06-27  7:22   ` Wu, Hao A
2018-06-27  6:59 ` [patch] MdeModulePkg/PiSmmCore: Remove SMM Perf entry Gao, Liming

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox