mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[NTOS:MM] Get rid of unnecessary MmZeroingPageThreadActive.
This commit is contained in:
parent
5280deecfa
commit
25a5aee86f
4 changed files with 4 additions and 8 deletions
|
@ -639,7 +639,6 @@ extern PMMPDE MiHighestUserPde;
|
|||
extern PFN_NUMBER MmSystemPageDirectory[PPE_PER_PAGE];
|
||||
extern PMMPTE MmSharedUserDataPte;
|
||||
extern LIST_ENTRY MmProcessList;
|
||||
extern BOOLEAN MmZeroingPageThreadActive;
|
||||
extern KEVENT MmZeroingPageEvent;
|
||||
extern ULONG MmSystemPageColor;
|
||||
extern ULONG MmProcessColorSeed;
|
||||
|
|
|
@ -2181,9 +2181,8 @@ MmArmInitSystem(IN ULONG Phase,
|
|||
/* Initialize the Loader Lock */
|
||||
KeInitializeMutant(&MmSystemLoadLock, FALSE);
|
||||
|
||||
/* Set the zero page event */
|
||||
KeInitializeEvent(&MmZeroingPageEvent, SynchronizationEvent, FALSE);
|
||||
MmZeroingPageThreadActive = FALSE;
|
||||
/* Set up the zero page event */
|
||||
KeInitializeEvent(&MmZeroingPageEvent, NotificationEvent, FALSE);
|
||||
|
||||
/* Initialize the dead stack S-LIST */
|
||||
InitializeSListHead(&MmDeadStackSListHead);
|
||||
|
|
|
@ -701,10 +701,9 @@ MiInsertPageInFreeList(IN PFN_NUMBER PageFrameIndex)
|
|||
ColorTable->Count++;
|
||||
|
||||
/* Notify zero page thread if enough pages are on the free list now */
|
||||
if ((ListHead->Total >= 8) && !(MmZeroingPageThreadActive))
|
||||
if (ListHead->Total >= 8)
|
||||
{
|
||||
/* Set the event */
|
||||
MmZeroingPageThreadActive = TRUE;
|
||||
KeSetEvent(&MmZeroingPageEvent, IO_NO_INCREMENT, FALSE);
|
||||
}
|
||||
|
||||
|
|
|
@ -17,7 +17,6 @@
|
|||
|
||||
/* GLOBALS ********************************************************************/
|
||||
|
||||
BOOLEAN MmZeroingPageThreadActive;
|
||||
KEVENT MmZeroingPageEvent;
|
||||
|
||||
/* PRIVATE FUNCTIONS **********************************************************/
|
||||
|
@ -73,7 +72,7 @@ MmZeroPageThread(VOID)
|
|||
{
|
||||
if (!MmFreePageListHead.Total)
|
||||
{
|
||||
MmZeroingPageThreadActive = FALSE;
|
||||
KeClearEvent(&MmZeroingPageEvent);
|
||||
MiReleasePfnLock(OldIrql);
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue