Re: Catching NForce2 lockup with NMI watchdog

From: Maciej W. Rozycki
Date: Tue Dec 16 2003 - 15:55:10 EST


On Tue, 16 Dec 2003, George Anzinger wrote:

> This is for the VST code where we want to stop the timer interrupts for a bit IF
> and only if we are in the idle task AND there are no timers to service, i.e. the
> interrupt would be useless. We don't want to mess with the PIT program as that
> would mess up the time when we turn it on again. So we just want to stop a few
> interrupts from time to time. We catch up after turning the PIT back on by
> using the TSC or pm_timer or some other source that keeps something close to
> reasonable time.

I see. Well, then disable_irq(0) may be the easiest way to do that for
the regular timer interrupt. For the NMI watchdog from the I/O APIC you'd
use disable_8259A_irq(0) and for one from the local APIC -- just mask the
APIC_LVTPC interrupt (there's no wrapper function, but that's easy).

--
+ Maciej W. Rozycki, Technical University of Gdansk, Poland +
+--------------------------------------------------------------+
+ e-mail: macro@xxxxxxxxxxxxx, PGP key available +
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/