From ee0961f723dc78d6c95d9980f115c37964314a5a Mon Sep 17 00:00:00 2001 From: qhuang8 Date: Mon, 23 Feb 2009 03:02:50 +0000 Subject: Update Performance library instances to adapt to the update in Performance infrastructure. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7569 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.c | 2 +- .../Library/DxeCorePerformanceLib/DxeCorePerformanceLib.inf | 7 ++----- .../Library/DxeCorePerformanceLib/DxeCorePerformanceLibInternal.h | 3 +-- 3 files changed, 4 insertions(+), 8 deletions(-) (limited to 'MdeModulePkg/Library/DxeCorePerformanceLib') diff --git a/MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.c b/MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.c index f861d61430..01208ec06f 100644 --- a/MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.c +++ b/MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.c @@ -306,7 +306,7 @@ InternalGetPeiPerformance ( // // Dump PEI Log Entries to DXE Guage Data structure. // - GuidHob = GetFirstGuidHob (&gPeiPerformanceHobGuid); + GuidHob = GetFirstGuidHob (&gPerformanceProtocolGuid); if (GuidHob != NULL) { LogHob = GET_GUID_HOB_DATA (GuidHob); LogEntryArray = (PEI_PERFORMANCE_LOG_ENTRY *) (LogHob + 1); diff --git a/MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.inf b/MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.inf index 4420603ef0..bdda45feb7 100644 --- a/MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.inf +++ b/MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.inf @@ -57,11 +57,8 @@ [Guids] - gPeiPerformanceHobGuid ## CONSUMES ## HOB - - -[Protocols] - gPerformanceProtocolGuid # PRODUCES + gPerformanceProtocolGuid ## CONSUMES ## HOB + gPerformanceProtocolGuid ## PRODUCES ## PROTOCOL [Pcd.common] gEfiMdeModulePkgTokenSpaceGuid.PcdMaxPeiPerformanceLogEntries diff --git a/MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLibInternal.h b/MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLibInternal.h index cfa35fa847..a66f6f6d69 100644 --- a/MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLibInternal.h +++ b/MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLibInternal.h @@ -21,8 +21,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. #include -#include -#include +#include #include #include -- cgit v1.2.3