]> git.baikalelectronics.ru Git - kernel.git/commit
i386: fix a hang on stuck nmi watchdog
authorDaniel Walker <dwalker@mvista.com>
Thu, 6 Sep 2007 14:59:54 +0000 (16:59 +0200)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 11 Sep 2007 01:57:47 +0000 (18:57 -0700)
commit4e477afe4a03b42f781fc3c92f17cf4eb0881c63
tree31334c3c67e386949213015ff2c1f3a09c8b874b
parentc0498e2adb1053b89f190d9c7066be7fad1cb599
i386: fix a hang on stuck nmi watchdog

In the case when an nmi gets stucks the endflag stays equal to zero.
This causes the busy looping on other cpus to continue, even though the
nmi test is done.

On my machine with out the change below the system would hang right
after check_nmi_watchdog().  The change below just sets endflag prior to
checking if the test was successful or not.

Signed-off-by: Daniel Walker <dwalker@mvista.com>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/i386/kernel/nmi.c