diff --git a/Silicon/Intel/AlderlakeSiliconPkg/Fru/AdlCpu/LibraryPrivate/BaseCpuInfoFruLib/BaseCpuInfoFruLib.c b/Silicon/Intel/AlderlakeSiliconPkg/Fru/AdlCpu/LibraryPrivate/BaseCpuInfoFruLib/BaseCpuInfoFruLib.c index d93048eb6e3..70fbe23473d 100644 --- a/Silicon/Intel/AlderlakeSiliconPkg/Fru/AdlCpu/LibraryPrivate/BaseCpuInfoFruLib/BaseCpuInfoFruLib.c +++ b/Silicon/Intel/AlderlakeSiliconPkg/Fru/AdlCpu/LibraryPrivate/BaseCpuInfoFruLib/BaseCpuInfoFruLib.c @@ -19,8 +19,6 @@ #include #include - -STATIC CONST CHAR8 mAdlCpuFamilyString[] = "AlderLake"; typedef struct { UINT32 CPUID; UINT8 CpuSku; diff --git a/Silicon/Intel/AlderlakeSiliconPkg/Pch/PchSmiDispatcher/Smm/PchSmmCore.c b/Silicon/Intel/AlderlakeSiliconPkg/Pch/PchSmiDispatcher/Smm/PchSmmCore.c index cb889b5ce36..c56146a014d 100644 --- a/Silicon/Intel/AlderlakeSiliconPkg/Pch/PchSmiDispatcher/Smm/PchSmmCore.c +++ b/Silicon/Intel/AlderlakeSiliconPkg/Pch/PchSmiDispatcher/Smm/PchSmmCore.c @@ -690,7 +690,6 @@ PchSmmCoreDispatcher ( BOOLEAN ContextsMatch; BOOLEAN EosSet; - BOOLEAN SxChildWasDispatched; DATABASE_RECORD *RecordInDb; LIST_ENTRY *LinkInDb; @@ -718,7 +717,6 @@ PchSmmCoreDispatcher ( EscapeCount = 3; ContextsMatch = FALSE; EosSet = FALSE; - SxChildWasDispatched = FALSE; Status = EFI_SUCCESS; // @@ -769,13 +767,6 @@ PchSmmCoreDispatcher ( EosSet = PchSmmSetAndCheckEos (); } } else { - // - // We found a source. If this is a sleep type, we have to go to - // appropriate sleep state anyway.No matter there is sleep child or not - // - if (RecordInDb->ProtocolType == SxType) { - SxChildWasDispatched = TRUE; - } // // "cache" the source description and don't query I/O anymore // @@ -855,9 +846,6 @@ PchSmmCoreDispatcher ( PERF_START_EX (NULL, "SmmFunction", NULL, AsmReadTsc (), RecordToExhaust->ProtocolType); RecordToExhaust->Callback ((EFI_HANDLE) & RecordToExhaust->Link, &Context, CommBuffer, &CommBufferSize); PERF_END_EX (NULL, "SmmFunction", NULL, AsmReadTsc (), RecordToExhaust->ProtocolType); - if (RecordToExhaust->ProtocolType == SxType) { - SxChildWasDispatched = TRUE; - } } else { ASSERT (FALSE); } diff --git a/Silicon/Intel/AlderlakeSiliconPkg/Pch/PchSmiDispatcher/Smm/PchSmmGpi.c b/Silicon/Intel/AlderlakeSiliconPkg/Pch/PchSmiDispatcher/Smm/PchSmmGpi.c index 4c59c07bacb..4bfe0aae700 100644 --- a/Silicon/Intel/AlderlakeSiliconPkg/Pch/PchSmiDispatcher/Smm/PchSmmGpi.c +++ b/Silicon/Intel/AlderlakeSiliconPkg/Pch/PchSmiDispatcher/Smm/PchSmmGpi.c @@ -171,7 +171,6 @@ PchGpiSmiUnRegister ( UINT32 GpiHostSwOwnRegAddress; UINT32 GpiSmiStsRegAddress; UINT32 Data32Or; - UINT32 Data32And; BOOLEAN DisableGpiSmiSource; @@ -232,7 +231,6 @@ PchGpiSmiUnRegister ( ); Data32Or = 1u << GpiSmiBitOffset; - Data32And = 0xFFFFFFFF; MmioOr32 (GpiHostSwOwnRegAddress, Data32Or); }