Re: Watchdog and NMI

Alan Cox (alan@lxorguk.ukuu.org.uk)
Tue, 22 Dec 1998 14:06:54 +0000 (GMT)


> I've a watchdog that can raise NMI if counter isn't reset for a given
> time. What happens in linux on NMI signal ?

It catches it in the nmi handler, prints a message and carries on (look
in arch/i386/kernel)

> Is it possible to make the kernel sync and reboot on NMI ?
> If needed, what should I modify for that ?

Reboot yes, sync maybe - nmi doesnt honour normal interrupt locking so
you might NMI in the middle of a disk block being written and then who
knows quite what sync would do other than probably lock. Better
to make NMI just reboot. Better yet if the card was wired to the reset line

Alan

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/