IntelFrameworkModulePkg/GenericBdsLib: Remove the useless Perf codes
Our new performance infrastructure (edk2 trunk commit hash value: SHA-1:73fef64f14
~ SHA-1:115eae650b
) can support to dump performance date form ACPI table in OS. So we can remove the old perf code to write performance data to OS. 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> Reviewed-by: Star Zeng <star.zeng@intel.com> (cherry picked from commitb8d06293ca
)
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
/** @file
|
||||
BDS Lib functions which relate with create or process the boot option.
|
||||
|
||||
Copyright (c) 2004 - 2017, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
@ -18,6 +18,29 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
BOOLEAN mEnumBootDevice = FALSE;
|
||||
EFI_HII_HANDLE gBdsLibStringPackHandle = NULL;
|
||||
|
||||
/**
|
||||
|
||||
End Perf entry of BDS
|
||||
|
||||
@param Event The triggered event.
|
||||
@param Context Context for this event.
|
||||
|
||||
**/
|
||||
VOID
|
||||
EFIAPI
|
||||
BmEndOfBdsPerfCode (
|
||||
IN EFI_EVENT Event,
|
||||
IN VOID *Context
|
||||
)
|
||||
{
|
||||
//
|
||||
// Record the performance data for End of BDS
|
||||
//
|
||||
PERF_END(NULL, "BDS", NULL, 0);
|
||||
|
||||
return ;
|
||||
}
|
||||
|
||||
/**
|
||||
The constructor function register UNI strings into imageHandle.
|
||||
|
||||
@ -1695,7 +1718,7 @@ BdsLibDoLegacyBoot (
|
||||
//
|
||||
Status = EfiCreateEventLegacyBootEx(
|
||||
TPL_NOTIFY,
|
||||
WriteBootToOsPerformanceData,
|
||||
BmEndOfBdsPerfCode,
|
||||
NULL,
|
||||
&LegacyBootEvent
|
||||
);
|
||||
@ -2425,7 +2448,7 @@ BdsLibBootViaBootOption (
|
||||
// Write boot to OS performance data for UEFI boot
|
||||
//
|
||||
PERF_CODE (
|
||||
WriteBootToOsPerformanceData (NULL, NULL);
|
||||
BmEndOfBdsPerfCode (NULL, NULL);
|
||||
);
|
||||
|
||||
//
|
||||
|
Reference in New Issue
Block a user