]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] i386 nmi_watchdog: Merge check_nmi_watchdog fixes from x86_64
authorEric W. Biederman <ebiederm@xmission.com>
Sun, 30 Oct 2005 22:59:40 +0000 (14:59 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 31 Oct 2005 01:37:13 +0000 (17:37 -0800)
commitd64fa58a4acbaf64e640ecf858e3e012cee1174e
treed992aa91eeae9ac79265dd0ead0d7cc5a48f31f1
parent92cab48e47f7993ebab9c1f122b3edf78b2a73b9
[PATCH] i386 nmi_watchdog: Merge check_nmi_watchdog fixes from x86_64

The per cpu nmi watchdog timer is based on an event counter.  idle cpus
don't generate events so the NMI watchdog doesn't fire and the test to see
if the watchdog is working fails.

- Add nmi_cpu_busy so idle cpus don't mess up the test.
- kmalloc prev_nmi_count to keep kernel stack usage bounded.
- Improve the error message on failure so there is enough
  information to debug problems.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/i386/kernel/nmi.c