mirror of https://github.com/acidanthera/audk.git
UefiCpuPkg/PiSmmCpuDxeSmm: 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
800aeeda74
commit
466f5e89c3
|
@ -35,7 +35,6 @@ typedef struct {
|
||||||
// Flags used when program the register.
|
// Flags used when program the register.
|
||||||
//
|
//
|
||||||
typedef struct {
|
typedef struct {
|
||||||
volatile UINTN ConsoleLogLock; // Spinlock used to control console.
|
|
||||||
volatile UINTN MemoryMappedLock; // Spinlock used to program mmio
|
volatile UINTN MemoryMappedLock; // Spinlock used to program mmio
|
||||||
volatile UINT32 *CoreSemaphoreCount; // Semaphore container used to program
|
volatile UINT32 *CoreSemaphoreCount; // Semaphore container used to program
|
||||||
// core level semaphore.
|
// core level semaphore.
|
||||||
|
@ -1028,7 +1027,6 @@ GetAcpiCpuData (
|
||||||
ASSERT (mCpuFlags.PackageSemaphoreCount != NULL);
|
ASSERT (mCpuFlags.PackageSemaphoreCount != NULL);
|
||||||
}
|
}
|
||||||
InitializeSpinLock((SPIN_LOCK*) &mCpuFlags.MemoryMappedLock);
|
InitializeSpinLock((SPIN_LOCK*) &mCpuFlags.MemoryMappedLock);
|
||||||
InitializeSpinLock((SPIN_LOCK*) &mCpuFlags.ConsoleLogLock);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue