* - call at IRQL <= DISPATCH_LEVEL
*/
{
- KIRQL OldIrql;
+ //KIRQL OldIrql;
ASSERT_IRQL(DISPATCH_LEVEL);
ASSERT(TimerCancelled);
*TimerCancelled = KeCancelTimer (&Timer->Timer);
+#if 0
if (*TimerCancelled)
{
KeAcquireSpinLock(&Timer->Miniport->Lock, &OldIrql);
if (!DequeueMiniportTimer(Timer)) ASSERT(FALSE);
KeReleaseSpinLock(&Timer->Miniport->Lock, OldIrql);
}
+#endif
}
VOID NTAPI
{
PNDIS_MINIPORT_TIMER Timer = DeferredContext;
+#if 0
/* Only dequeue if the timer has a period of 0 */
if (!Timer->Timer.Period)
{
if (!DequeueMiniportTimer(Timer)) ASSERT(FALSE);
KeReleaseSpinLockFromDpcLevel(&Timer->Miniport->Lock);
}
+#endif
Timer->MiniportTimerFunction(Dpc,
Timer->MiniportTimerContext,
*/
{
LARGE_INTEGER Timeout;
- KIRQL OldIrql;
+ //KIRQL OldIrql;
ASSERT_IRQL(DISPATCH_LEVEL);
ASSERT(Timer);
/* relative delays are negative, absolute are positive; resolution is 100ns */
Timeout.QuadPart = Int32x32To64(MillisecondsPeriod, -10000);
-
+
+#if 0
/* Lock the miniport block */
KeAcquireSpinLock(&Timer->Miniport->Lock, &OldIrql);
/* Unlock the miniport block */
KeReleaseSpinLock(&Timer->Miniport->Lock, OldIrql);
+#endif
KeSetTimerEx(&Timer->Timer, Timeout, MillisecondsPeriod, &Timer->Dpc);
}
*/
{
LARGE_INTEGER Timeout;
- KIRQL OldIrql;
+ //KIRQL OldIrql;
ASSERT_IRQL(DISPATCH_LEVEL);
ASSERT(Timer);
/* relative delays are negative, absolute are positive; resolution is 100ns */
Timeout.QuadPart = Int32x32To64(MillisecondsToDelay, -10000);
+#if 0
/* Lock the miniport block */
KeAcquireSpinLock(&Timer->Miniport->Lock, &OldIrql);
/* Unlock the miniport block */
KeReleaseSpinLock(&Timer->Miniport->Lock, OldIrql);
+#endif
KeSetTimer(&Timer->Timer, Timeout, &Timer->Dpc);
}