[PATCH] x86: Add abilty to enable/disable nmi watchdog with sysctl

Adds a new /proc/sys/kernel/nmi call that will enable/disable the nmi
watchdog.

Signed-off-by:  Don Zickus <[email protected]>
Signed-off-by: Andi Kleen <[email protected]>
This commit is contained in:
Don Zickus 2006-09-26 10:52:27 +02:00 • committed by Andi Kleen
commit 407984f1af
6 changed files with 114 additions and 0 deletions

View file

@ -14,6 +14,7 @@
*/
int do_nmi_callback(struct pt_regs *regs, int cpu);
extern int nmi_watchdog_enabled;
extern int avail_to_resrv_perfctr_nmi_bit(unsigned int);
extern int avail_to_resrv_perfctr_nmi(unsigned int);
extern int reserve_perfctr_nmi(unsigned int);