i386: fix a hang on stuck nmi watchdog
commitd95865480de280b892e19fe90921601876da5775
authorDaniel Walker <dwalker@mvista.com>
Thu, 6 Sep 2007 14:59:54 +0000 (6 16:59 +0200)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 11 Sep 2007 01:57:47 +0000 (10 18:57 -0700)
tree31334c3c67e386949213015ff2c1f3a09c8b874b
parenta534b679180025aa324ebd63c05516e478551cfd
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