Update queued spinlock guard naming
This commit is contained in:
@@ -46,7 +46,7 @@ MM::Allocator::AllocateNonPagedPoolPages(IN PFN_COUNT Pages,
|
||||
{
|
||||
/* Acquire the Non-Paged pool lock and raise runlevel to DISPATCH level */
|
||||
KE::RaiseRunLevel RunLevel(DISPATCH_LEVEL);
|
||||
KE::QueuedSpinLockGuard NonPagedPoolSpinLock(NonPagedPoolLock);
|
||||
KE::SystemQueuedSpinLockGuard NonPagedPoolSpinLock(NonPagedPoolLock);
|
||||
|
||||
/* Iterate through the free lists */
|
||||
do
|
||||
@@ -124,10 +124,10 @@ MM::Allocator::AllocateNonPagedPoolPages(IN PFN_COUNT Pages,
|
||||
|
||||
/* Acquire the Non-Paged pool lock and raise runlevel to DISPATCH level */
|
||||
KE::RaiseRunLevel RunLevel(DISPATCH_LEVEL);
|
||||
KE::QueuedSpinLockGuard NonPagedPoolSpinLock(NonPagedPoolLock);
|
||||
KE::SystemQueuedSpinLockGuard NonPagedPoolSpinLock(NonPagedPoolLock);
|
||||
|
||||
/* Acquire the PFN database lock */
|
||||
KE::QueuedSpinLockGuard PfnSpinLock(PfnLock);
|
||||
KE::SystemQueuedSpinLockGuard PfnSpinLock(PfnLock);
|
||||
|
||||
/* Check if there are enough available physical pages to back the allocation */
|
||||
if(Pages >= MM::Pfn::GetAvailablePages())
|
||||
@@ -798,7 +798,7 @@ MM::Allocator::FreeNonPagedPoolPages(IN PVOID VirtualAddress,
|
||||
|
||||
/* Acquire the Non-Paged pool lock and raise runlevel to DISPATCH level */
|
||||
KE::RaiseRunLevel RunLevel(DISPATCH_LEVEL);
|
||||
KE::QueuedSpinLockGuard NonPagedPoolSpinLock(NonPagedPoolLock);
|
||||
KE::SystemQueuedSpinLockGuard NonPagedPoolSpinLock(NonPagedPoolLock);
|
||||
|
||||
/* Denote allocation boundaries */
|
||||
FirstPfn->u3.e1.ReadInProgress = 0;
|
||||
|
||||
@@ -129,7 +129,7 @@ MM::Pfn::InitializePfnDatabase(VOID)
|
||||
|
||||
/* Raise runlevel and acquire the PFN lock */
|
||||
KE::RaiseRunLevel RunLevel(DISPATCH_LEVEL);
|
||||
KE::QueuedSpinLockGuard SpinLock(SystemSpaceLock);
|
||||
KE::SystemQueuedSpinLockGuard SpinLock(SystemSpaceLock);
|
||||
|
||||
/* Get the kernel initialization block */
|
||||
InitializationBlock = KE::BootInformation::GetInitializationBlock();
|
||||
|
||||
@@ -51,7 +51,7 @@ MM::Pfn::InitializePfnDatabase(VOID)
|
||||
|
||||
/* Raise runlevel and acquire PFN lock */
|
||||
KE::RaiseRunLevel RunLevel(DISPATCH_LEVEL);
|
||||
KE::QueuedSpinLockGuard SpinLock(SystemSpaceLock);
|
||||
KE::SystemQueuedSpinLockGuard SpinLock(SystemSpaceLock);
|
||||
|
||||
/* Get the kernel initialization block */
|
||||
InitializationBlock = KE::BootInformation::GetInitializationBlock();
|
||||
|
||||
@@ -57,7 +57,7 @@ MM::KernelPool::AllocateKernelStack(OUT PVOID *Stack,
|
||||
|
||||
/* Acquire the PFN database lock and raise runlevel to DISPATCH_LEVEL */
|
||||
KE::RaiseRunLevel RunLevel(DISPATCH_LEVEL);
|
||||
KE::QueuedSpinLockGuard SpinLock(SystemSpaceLock);
|
||||
KE::SystemQueuedSpinLockGuard SpinLock(SystemSpaceLock);
|
||||
|
||||
/* Start iterating from the base of the reserved PTE block */
|
||||
PointerPte = StackPte;
|
||||
@@ -155,7 +155,7 @@ MM::KernelPool::FreeKernelStack(IN PVOID Stack,
|
||||
/* Start a guarded code block */
|
||||
{
|
||||
/* Acquire the PFN database lock */
|
||||
KE::QueuedSpinLockGuard SpinLock(SystemSpaceLock);
|
||||
KE::SystemQueuedSpinLockGuard SpinLock(SystemSpaceLock);
|
||||
|
||||
/* Loop through each page of the stack that needs to be freed */
|
||||
for(Index = 0; Index < StackPages; Index++)
|
||||
|
||||
@@ -365,7 +365,7 @@ MM::Pte::ReleaseSystemPtes(IN PMMPTE StartingPte,
|
||||
|
||||
/* Raise runlevel and acquire lock to protect the PTE pool */
|
||||
KE::RaiseRunLevel RunLevel(DISPATCH_LEVEL);
|
||||
KE::QueuedSpinLockGuard SpinLock(SystemSpaceLock);
|
||||
KE::SystemQueuedSpinLockGuard SpinLock(SystemSpaceLock);
|
||||
|
||||
/* Increment the total number of available PTEs in this pool */
|
||||
TotalSystemFreePtes[SystemPtePoolType] += NumberOfPtes;
|
||||
@@ -478,7 +478,7 @@ MM::Pte::ReserveSystemPtes(IN PFN_COUNT NumberOfPtes,
|
||||
|
||||
/* Raise runlevel and acquire lock to protect the PTE pool */
|
||||
KE::RaiseRunLevel RunLevel(DISPATCH_LEVEL);
|
||||
KE::QueuedSpinLockGuard SpinLock(SystemSpaceLock);
|
||||
KE::SystemQueuedSpinLockGuard SpinLock(SystemSpaceLock);
|
||||
|
||||
/* Find a free PTE cluster large enough for the request */
|
||||
if(!FindFreeCluster(NumberOfPtes, SystemPtePoolType, &NextPte, &PreviousPte))
|
||||
|
||||
Reference in New Issue
Block a user