mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
- The quantum of the idle thread must also end.
svn path=/trunk/; revision=11503
This commit is contained in:
parent
914140ad22
commit
7287eafc08
1 changed files with 4 additions and 7 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: timer.c,v 1.85 2004/10/30 23:48:56 navaraf Exp $
|
||||
/* $Id: timer.c,v 1.86 2004/10/31 15:24:06 hbirr Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -761,15 +761,12 @@ KeUpdateRunTime(
|
|||
* If we're at end of quantum request software interrupt. The rest
|
||||
* is handled in KiDispatchInterrupt.
|
||||
*/
|
||||
if ((CurrentThread->Quantum -= 3) < 0)
|
||||
{
|
||||
if (CurrentThread != Pcr->PrcbData.IdleThread)
|
||||
if ((CurrentThread->Quantum -= 3) <= 0)
|
||||
{
|
||||
Pcr->PrcbData.QuantumEnd = TRUE;
|
||||
HalRequestSoftwareInterrupt(DISPATCH_LEVEL);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue