Author: tfaber
Date: Tue Sep 1 18:26:29 2015
New Revision: 68902
URL:
http://svn.reactos.org/svn/reactos?rev=68902&view=rev
Log:
[NTOS:KE]
- Enable DPC timeout check on debug builds. Suggested by Stefan
Modified:
trunk/reactos/ntoskrnl/ke/dpc.c
trunk/reactos/ntoskrnl/ke/time.c
Modified: trunk/reactos/ntoskrnl/ke/dpc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ke/dpc.c?rev=6890…
==============================================================================
--- trunk/reactos/ntoskrnl/ke/dpc.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ke/dpc.c [iso-8859-1] Tue Sep 1 18:26:29 2015
@@ -601,8 +601,10 @@
/* Decrease the queue depth */
DpcData->DpcQueueDepth--;
+#if DBG
/* Clear DPC Time */
Prcb->DebugDpcTime = 0;
+#endif
/* Release the lock */
KeReleaseSpinLockFromDpcLevel(&DpcData->DpcLock);
Modified: trunk/reactos/ntoskrnl/ke/time.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ke/time.c?rev=689…
==============================================================================
--- trunk/reactos/ntoskrnl/ke/time.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ke/time.c [iso-8859-1] Tue Sep 1 18:26:29 2015
@@ -184,12 +184,12 @@
/* 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");