From 7287eafc087caed18bf553bdd05d00de0478049b Mon Sep 17 00:00:00 2001 From: Hartmut Birr Date: Sun, 31 Oct 2004 15:24:06 +0000 Subject: [PATCH] - The quantum of the idle thread must also end. svn path=/trunk/; revision=11503 --- reactos/ntoskrnl/ke/timer.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/reactos/ntoskrnl/ke/timer.c b/reactos/ntoskrnl/ke/timer.c index 222215a01e8..a57cb3aa78f 100644 --- a/reactos/ntoskrnl/ke/timer.c +++ b/reactos/ntoskrnl/ke/timer.c @@ -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,13 +761,10 @@ KeUpdateRunTime( * If we're at end of quantum request software interrupt. The rest * is handled in KiDispatchInterrupt. */ - if ((CurrentThread->Quantum -= 3) < 0) + if ((CurrentThread->Quantum -= 3) <= 0) { - if (CurrentThread != Pcr->PrcbData.IdleThread) - { - Pcr->PrcbData.QuantumEnd = TRUE; - HalRequestSoftwareInterrupt(DISPATCH_LEVEL); - } + Pcr->PrcbData.QuantumEnd = TRUE; + HalRequestSoftwareInterrupt(DISPATCH_LEVEL); } }