mirror of
https://github.com/reactos/reactos.git
synced 2026-07-07 02:54:19 +08:00
don't walk all the timers as they're sorted.
svn path=/trunk/; revision=13568
This commit is contained in:
@@ -245,15 +245,14 @@ KiExpireTimers(PKDPC Dpc,
|
||||
Timer = CONTAINING_RECORD(CurrentEntry, KTIMER, TimerListEntry);
|
||||
DPRINT("Looping for Timer: %x. Duetime: %I64d. InterruptTime %I64d \n", Timer, Timer->DueTime.QuadPart, InterruptTime);
|
||||
|
||||
CurrentEntry = CurrentEntry->Flink;
|
||||
|
||||
/* Check if we have to Expire it */
|
||||
if (InterruptTime >= Timer->DueTime.QuadPart) {
|
||||
if (InterruptTime < Timer->DueTime.QuadPart) break;
|
||||
|
||||
CurrentEntry = CurrentEntry->Flink;
|
||||
|
||||
/* Remove it from the Timer List, add it to the Expired List */
|
||||
RemoveEntryList(&Timer->TimerListEntry);
|
||||
InsertTailList(&ExpiredTimerList, &Timer->TimerListEntry);
|
||||
}
|
||||
/* Remove it from the Timer List, add it to the Expired List */
|
||||
RemoveEntryList(&Timer->TimerListEntry);
|
||||
InsertTailList(&ExpiredTimerList, &Timer->TimerListEntry);
|
||||
}
|
||||
|
||||
/* Expire the Timers */
|
||||
|
||||
Reference in New Issue
Block a user