sparc64: Manage NMI watchdog enabling like x86.
authorDavid S. Miller <davem@davemloft.net>
Wed, 9 Sep 2009 06:16:06 +0000 (23:16 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Sep 2009 06:16:06 +0000 (23:16 -0700)
commita8f22264550e64c0cd11fb6647284b0bd6407f9c
treee42ef7f04063bef6114c6488c70eff7089b5ea26
parent825c9fb47a0837db12fecf8d360e0e1d284ddb49
sparc64: Manage NMI watchdog enabling like x86.

Use a per-cpu 'wd_enabled' boolean and a global atomic_t count
of watchdog NMI enabled cpus which is set to '-1' if something
is wrong with the watchdog and it can't be used.

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/include/asm/nmi.h
arch/sparc/kernel/nmi.c
arch/sparc/oprofile/init.c