diff --git a/reactos/ntoskrnl/ke/dpc.c b/reactos/ntoskrnl/ke/dpc.c index 47772379ca2..d47ee9d7824 100644 --- a/reactos/ntoskrnl/ke/dpc.c +++ b/reactos/ntoskrnl/ke/dpc.c @@ -601,8 +601,10 @@ KiRetireDpcList(IN PKPRCB Prcb) /* Decrease the queue depth */ DpcData->DpcQueueDepth--; +#if DBG /* Clear DPC Time */ Prcb->DebugDpcTime = 0; +#endif /* Release the lock */ KeReleaseSpinLockFromDpcLevel(&DpcData->DpcLock); diff --git a/reactos/ntoskrnl/ke/time.c b/reactos/ntoskrnl/ke/time.c index f54b9258a46..ef92051f143 100644 --- a/reactos/ntoskrnl/ke/time.c +++ b/reactos/ntoskrnl/ke/time.c @@ -184,12 +184,12 @@ KeUpdateRunTime(IN PKTRAP_FRAME TrapFrame, /* Handle being in a DPC */ Prcb->DpcTime++; -#if 0 //DBG +#if DBG /* Update the DPC time */ Prcb->DebugDpcTime++; /* Check if we have timed out */ - if (Prcb->DebugDpcTime == KiDPCTimeout); + if (Prcb->DebugDpcTime == KiDPCTimeout) { /* We did! */ DbgPrint("*** DPC routine > 1 sec --- This is not a break in KeUpdateSystemTime\n");