diff options
author | YuanhaoXie <yuanhao.xie@intel.com> | 2023-10-11 15:58:40 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2023-10-12 07:30:46 +0000 |
commit | 326b9e1d815c4ae4b0b207fcb0bfa16864af5400 (patch) | |
tree | bf7fea11447d697af34074a8f3f67030c220902d /UefiCpuPkg | |
parent | eebd446875a4b1e4879e03764f63c6c358fd64f5 (diff) | |
download | edk2-326b9e1d815c4ae4b0b207fcb0bfa16864af5400.tar.gz edk2-326b9e1d815c4ae4b0b207fcb0bfa16864af5400.tar.bz2 edk2-326b9e1d815c4ae4b0b207fcb0bfa16864af5400.zip |
UefiCpuPkg/CpuDxe: Eliminate the unused variable.
This change does not introduce any functional modifications.
Remove the unused mValidMtrrAddressMask and mValidMtrrBitsMask.
Reviewed-by: Ray Ni <ray.ni@intel.com>
Signed-off-by: Yuanhao Xie <yuanhao.xie@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Cc: Rahul Kumar <rahul1.kumar@intel.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: Ray Ni <ray.ni@intel.com>
Diffstat (limited to 'UefiCpuPkg')
-rw-r--r-- | UefiCpuPkg/CpuDxe/CpuDxe.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/UefiCpuPkg/CpuDxe/CpuDxe.c b/UefiCpuPkg/CpuDxe/CpuDxe.c index c5ac624f9e..bf03978710 100644 --- a/UefiCpuPkg/CpuDxe/CpuDxe.c +++ b/UefiCpuPkg/CpuDxe/CpuDxe.c @@ -15,15 +15,13 @@ //
// Global Variables
//
-BOOLEAN InterruptState = FALSE;
-EFI_HANDLE mCpuHandle = NULL;
-BOOLEAN mIsFlushingGCD;
-BOOLEAN mIsAllocatingPageTable = FALSE;
-UINT64 mValidMtrrAddressMask;
-UINT64 mValidMtrrBitsMask;
-UINT64 mTimerPeriod = 0;
-UINT32 mCpuTargetCState = 0;
-EFI_CPU_ARCH_PROTOCOL gCpu = {
+BOOLEAN InterruptState = FALSE;
+EFI_HANDLE mCpuHandle = NULL;
+BOOLEAN mIsFlushingGCD;
+BOOLEAN mIsAllocatingPageTable = FALSE;
+UINT64 mTimerPeriod = 0;
+
+EFI_CPU_ARCH_PROTOCOL gCpu = {
CpuFlushCpuDataCache,
CpuEnableInterrupt,
CpuDisableInterrupt,
|