summaryrefslogtreecommitdiff
path: root/UefiCpuPkg
diff options
context:
space:
mode:
authorlzeng14 <lzeng14@6f19259b-4bc3-4df7-8a09-765794883524>2012-03-19 02:52:15 +0000
committerlzeng14 <lzeng14@6f19259b-4bc3-4df7-8a09-765794883524>2012-03-19 02:52:15 +0000
commit5c0687ccc27a427e5e50f35e593814055d714d9b (patch)
tree181acda7f94cab37fe5a53e4411e874896692acc /UefiCpuPkg
parent5d81a9b3a8f41a34235f352bf394f0b1cf633fe9 (diff)
downloadedk2-platforms-5c0687ccc27a427e5e50f35e593814055d714d9b.tar.xz
Remove the useless performance logging code in BootScriptExecutorDxe driver and record S3 "ScriptExec" performance log before and after executing BootScriptExecutorEntrypoint in S3Reusme2Pei driver.
Signed-off-by: lzeng14 Reviewed-by: lgao4 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13108 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'UefiCpuPkg')
-rw-r--r--UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume.c b/UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume.c
index c0680bf771..50b2f7bc0a 100644
--- a/UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume.c
+++ b/UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume.c
@@ -390,6 +390,8 @@ S3ResumeBootOs (
//
AsmWriteIdtr (&PeiS3ResumeState->Idtr);
+ PERF_END (NULL, "ScriptExec", NULL, 0);
+
//
// Install BootScriptDonePpi
//
@@ -742,6 +744,8 @@ S3ResumeExecuteBootScript (
//
AsmReadIdtr (&PeiS3ResumeState->Idtr);
+ PERF_START (NULL, "ScriptExec", NULL, 0);
+
if (FeaturePcdGet (PcdDxeIplSwitchToLongMode)) {
//
// X64 S3 Resume