mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 15:03:00 +00:00
[NTOS:KE]
- Enable DPC timeout check on debug builds. Suggested by Stefan svn path=/trunk/; revision=68902
This commit is contained in:
parent
62945a0c1c
commit
fb17ced703
2 changed files with 4 additions and 2 deletions
|
@ -601,8 +601,10 @@ KiRetireDpcList(IN PKPRCB Prcb)
|
||||||
/* Decrease the queue depth */
|
/* Decrease the queue depth */
|
||||||
DpcData->DpcQueueDepth--;
|
DpcData->DpcQueueDepth--;
|
||||||
|
|
||||||
|
#if DBG
|
||||||
/* Clear DPC Time */
|
/* Clear DPC Time */
|
||||||
Prcb->DebugDpcTime = 0;
|
Prcb->DebugDpcTime = 0;
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Release the lock */
|
/* Release the lock */
|
||||||
KeReleaseSpinLockFromDpcLevel(&DpcData->DpcLock);
|
KeReleaseSpinLockFromDpcLevel(&DpcData->DpcLock);
|
||||||
|
|
|
@ -184,12 +184,12 @@ KeUpdateRunTime(IN PKTRAP_FRAME TrapFrame,
|
||||||
/* Handle being in a DPC */
|
/* Handle being in a DPC */
|
||||||
Prcb->DpcTime++;
|
Prcb->DpcTime++;
|
||||||
|
|
||||||
#if 0 //DBG
|
#if DBG
|
||||||
/* Update the DPC time */
|
/* Update the DPC time */
|
||||||
Prcb->DebugDpcTime++;
|
Prcb->DebugDpcTime++;
|
||||||
|
|
||||||
/* Check if we have timed out */
|
/* Check if we have timed out */
|
||||||
if (Prcb->DebugDpcTime == KiDPCTimeout);
|
if (Prcb->DebugDpcTime == KiDPCTimeout)
|
||||||
{
|
{
|
||||||
/* We did! */
|
/* We did! */
|
||||||
DbgPrint("*** DPC routine > 1 sec --- This is not a break in KeUpdateSystemTime\n");
|
DbgPrint("*** DPC routine > 1 sec --- This is not a break in KeUpdateSystemTime\n");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue