summaryrefslogtreecommitdiffstats
path: root/UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.c
diff options
context:
space:
mode:
authorJeff Fan <jeff.fan@intel.com>2016-07-02 12:01:02 +0800
committerMichael Kinney <michael.d.kinney@intel.com>2016-07-14 08:58:04 -0700
commit51773d49de84e7f1d7b1f1c39c45a7c0fb4198d5 (patch)
tree028931a91326ad57811c5db065f6803bc04b838d /UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.c
parenta46a4c90d33dc7397b0f6f187008cbc385a1e051 (diff)
downloadedk2-51773d49de84e7f1d7b1f1c39c45a7c0fb4198d5.tar.gz
edk2-51773d49de84e7f1d7b1f1c39c45a7c0fb4198d5.tar.bz2
edk2-51773d49de84e7f1d7b1f1c39c45a7c0fb4198d5.zip
UefiCpuPkg/PiSmmCpuDxeSmm: Clean up CheckFeatureSupported()
Removed EFIAPI and parameter from CheckFeatureSupported() and removed CheckProcessorFeature() totally. Cc: Michael Kinney <michael.d.kinney@intel.com> Cc: Feng Tian <feng.tian@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan <jeff.fan@intel.com> Reviewed-by: Feng Tian <feng.tian@intel.com> Reviewed-by: Michael Kinney <michael.d.kinney@intel.com> Regression-tested-by: Laszlo Ersek <lersek@redhat.com>
Diffstat (limited to 'UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.c')
-rw-r--r--UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.c47
1 files changed, 1 insertions, 46 deletions
diff --git a/UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.c b/UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.c
index d315194dfc..329574ebb2 100644
--- a/UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.c
+++ b/UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.c
@@ -925,13 +925,10 @@ InitSmmProfileInternal (
/**
Check if XD feature is supported by a processor.
- @param[in,out] Buffer The pointer to private data buffer.
-
**/
VOID
-EFIAPI
CheckFeatureSupported (
- IN OUT VOID *Buffer
+ VOID
)
{
UINT32 RegEax;
@@ -979,48 +976,6 @@ CheckFeatureSupported (
}
/**
- Check if XD and BTS features are supported by all processors.
-
-**/
-VOID
-CheckProcessorFeature (
- VOID
- )
-{
- EFI_STATUS Status;
- EFI_MP_SERVICES_PROTOCOL *MpServices;
-
- Status = gBS->LocateProtocol (&gEfiMpServiceProtocolGuid, NULL, (VOID **)&MpServices);
- ASSERT_EFI_ERROR (Status);
-
- //
- // First detect if XD and BTS are supported
- //
- mXdSupported = TRUE;
- mBtsSupported = TRUE;
-
- //
- // Check if XD and BTS are supported on all processors.
- //
- CheckFeatureSupported (NULL);
-
- //
- //Check on other processors if BSP supports this
- //
- if (mXdSupported || mBtsSupported) {
- MpServices->StartupAllAPs (
- MpServices,
- CheckFeatureSupported,
- TRUE,
- NULL,
- 0,
- NULL,
- NULL
- );
- }
-}
-
-/**
Enable XD feature.
**/