diff options
Diffstat (limited to 'EdkModulePkg')
-rw-r--r-- | EdkModulePkg/EdkModulePkg.spd | 5 | ||||
-rw-r--r-- | EdkModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.c | 4 | ||||
-rw-r--r-- | EdkModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.msa | 3 |
3 files changed, 4 insertions, 8 deletions
diff --git a/EdkModulePkg/EdkModulePkg.spd b/EdkModulePkg/EdkModulePkg.spd index 0f0556b80d..84234060d1 100644 --- a/EdkModulePkg/EdkModulePkg.spd +++ b/EdkModulePkg/EdkModulePkg.spd @@ -427,11 +427,6 @@ <GuidValue>125F2DE1-FB85-440C-A54C-4D99358A8D38</GuidValue>
<HelpText/>
</Entry>
- <Entry Name="Performance">
- <C_Name>gEfiPerformanceProtocolGuid</C_Name>
- <GuidValue>FFECFFFF-923C-14D2-9E3F-22A0C969563B</GuidValue>
- <HelpText/>
- </Entry>
<Entry Name="PxeDhcp4">
<C_Name>gEfiPxeDhcp4ProtocolGuid</C_Name>
<GuidValue>03C4E624-AC28-11D3-9A2D-0090293FC14D</GuidValue>
diff --git a/EdkModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.c b/EdkModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.c index d2417234ab..5874902e2e 100644 --- a/EdkModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.c +++ b/EdkModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.c @@ -214,7 +214,6 @@ StartGauge ( UINTN GaugeDataSize;
UINTN OldGaugeDataSize;
GAUGE_DATA_HEADER *OldGaugeData;
- EFI_STATUS Status;
UINT32 Index;
Index = mGaugeData->NumberOfEntries;
@@ -230,7 +229,7 @@ StartGauge ( mGaugeData = AllocateZeroPool (GaugeDataSize);
if (mGaugeData == NULL) {
- return EFI_OUT_OF_MEMORY;
+ return EFI_OUT_OF_RESOURCES;
}
//
// Initialize new data arry and migrate old data one.
@@ -425,7 +424,6 @@ DxeCorePerformanceLibConstructor ( //
// Install the protocol interfaces.
//
- Handle = NULL;
Status = gBS->InstallProtocolInterface (
&mHandle,
&gPerformanceProtocolGuid,
diff --git a/EdkModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.msa b/EdkModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.msa index d217bdff5e..059c1f83fd 100644 --- a/EdkModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.msa +++ b/EdkModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.msa @@ -46,6 +46,9 @@ <LibraryClass Usage="ALWAYS_CONSUMED">
<Keyword>UefiBootServicesTableLib</Keyword>
</LibraryClass>
+ <LibraryClass Usage="ALWAYS_CONSUMED">
+ <Keyword>MemoryAllocationLib</Keyword>
+ </LibraryClass>
</LibraryClassDefinitions>
<SourceFiles>
<Filename>DxeCorePerformanceLib.c</Filename>
|