diff options
author | Don Zickus <dzickus@redhat.com> | 2006-09-26 04:52:26 -0400 |
---|---|---|
committer | Andi Kleen <andi@basil.nowhere.org> | 2006-09-26 04:52:26 -0400 |
commit | f2802e7f571c05f9a901b1f5bd144aa730ccc88e (patch) | |
tree | 68a2c4dd80dbf2e01f048b46460517b15cda63c0 /include/asm-x86_64 | |
parent | cb9c448c661d40ce2efbce8e9c19cc4d420d8ccc (diff) |
[PATCH] Add SMP support on x86_64 to reservation framework
This patch includes the changes to make the nmi watchdog on x86_64 SMP
aware. A bunch of code was moved around to make it simpler to read. In
addition, it is now possible to determine if a particular NMI was the result
of the watchdog or not. This feature allows the kernel to filter out
unknown NMIs easier.
Signed-off-by: Don Zickus <dzickus@redhat.com>
Signed-off-by: Andi Kleen <ak@suse.de>
Diffstat (limited to 'include/asm-x86_64')
-rw-r--r-- | include/asm-x86_64/nmi.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/asm-x86_64/nmi.h b/include/asm-x86_64/nmi.h index 62a784cb8f0c..5918136fd853 100644 --- a/include/asm-x86_64/nmi.h +++ b/include/asm-x86_64/nmi.h | |||
@@ -63,7 +63,7 @@ extern void release_perfctr_nmi(unsigned int); | |||
63 | extern int reserve_evntsel_nmi(unsigned int); | 63 | extern int reserve_evntsel_nmi(unsigned int); |
64 | extern void release_evntsel_nmi(unsigned int); | 64 | extern void release_evntsel_nmi(unsigned int); |
65 | 65 | ||
66 | extern void setup_apic_nmi_watchdog (void); | 66 | extern void setup_apic_nmi_watchdog (void *); |
67 | extern int reserve_lapic_nmi(void); | 67 | extern int reserve_lapic_nmi(void); |
68 | extern void release_lapic_nmi(void); | 68 | extern void release_lapic_nmi(void); |
69 | extern void disable_timer_nmi_watchdog(void); | 69 | extern void disable_timer_nmi_watchdog(void); |
@@ -73,6 +73,7 @@ extern void nmi_watchdog_tick (struct pt_regs * regs, unsigned reason); | |||
73 | extern void nmi_watchdog_default(void); | 73 | extern void nmi_watchdog_default(void); |
74 | extern int setup_nmi_watchdog(char *); | 74 | extern int setup_nmi_watchdog(char *); |
75 | 75 | ||
76 | extern atomic_t nmi_active; | ||
76 | extern unsigned int nmi_watchdog; | 77 | extern unsigned int nmi_watchdog; |
77 | #define NMI_DEFAULT -1 | 78 | #define NMI_DEFAULT -1 |
78 | #define NMI_NONE 0 | 79 | #define NMI_NONE 0 |