mirror of
https://github.com/reactos/reactos.git
synced 2025-02-28 19:32:59 +00:00
[NTOS:KE/x64] Lower IRQL to passive while running idle function
This commit is contained in:
parent
2559827ffa
commit
ea711415c4
1 changed files with 6 additions and 0 deletions
|
@ -156,9 +156,15 @@ KiIdleLoop(VOID)
|
|||
{
|
||||
Prcb->IdleHalt = 1;
|
||||
|
||||
/* Lower IRQL to passive */
|
||||
KeLowerIrql(PASSIVE_LEVEL);
|
||||
|
||||
/* Continue staying idle. Note the HAL returns with interrupts on */
|
||||
Prcb->PowerState.IdleFunction(&Prcb->PowerState);
|
||||
|
||||
/* Raise IRQL back to DISPATCH_LEVEL */
|
||||
KfRaiseIrql(DISPATCH_LEVEL);
|
||||
|
||||
Prcb->IdleHalt = 0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue