mirror of https://github.com/acidanthera/audk.git
UefiCpuPkg/RegisterCpuFeaturesLib: Clean up useless ConsoleLogLock spinlock.
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2060 Remove the useless ConsoleLogLock spinlock. Signed-off-by: Eric Dong <eric.dong@intel.com> Cc: Ray Ni <ray.ni@intel.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com>
This commit is contained in:
parent
01acb06c4f
commit
800aeeda74
|
@ -58,7 +58,6 @@ typedef struct {
|
|||
// Flags used when program the register.
|
||||
//
|
||||
typedef struct {
|
||||
volatile UINTN ConsoleLogLock; // Spinlock used to control console.
|
||||
volatile UINTN MemoryMappedLock; // Spinlock used to program mmio
|
||||
volatile UINT32 *CoreSemaphoreCount; // Semaphore containers used to program Core semaphore.
|
||||
volatile UINT32 *PackageSemaphoreCount; // Semaphore containers used to program Package semaphore.
|
||||
|
|
|
@ -839,7 +839,6 @@ RegisterCpuFeature (
|
|||
if (CpuFeaturesData->FeaturesCount == 0) {
|
||||
InitializeListHead (&CpuFeaturesData->FeatureList);
|
||||
InitializeSpinLock (&CpuFeaturesData->CpuFlags.MemoryMappedLock);
|
||||
InitializeSpinLock (&CpuFeaturesData->CpuFlags.ConsoleLogLock);
|
||||
//
|
||||
// Code assumes below three PCDs have PCD same buffer size.
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue