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 | b7471c6da94d30d3deadc55986cc38d1ff57f9ca (patch) | |
tree | 6aa23314273763acccbe9ddd0b8bd442edde0509 /include/asm-i386 | |
parent | f2802e7f571c05f9a901b1f5bd144aa730ccc88e (diff) |
[PATCH] i386: Add SMP support on i386 to reservation framework
This patch includes the changes to make the nmi watchdog on i386 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-i386')
-rw-r--r-- | include/asm-i386/nmi.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/asm-i386/nmi.h b/include/asm-i386/nmi.h index 27fc9e6f630e..4cda6801ecb8 100644 --- a/include/asm-i386/nmi.h +++ b/include/asm-i386/nmi.h | |||
@@ -32,13 +32,14 @@ extern void release_perfctr_nmi(unsigned int); | |||
32 | extern int reserve_evntsel_nmi(unsigned int); | 32 | extern int reserve_evntsel_nmi(unsigned int); |
33 | extern void release_evntsel_nmi(unsigned int); | 33 | extern void release_evntsel_nmi(unsigned int); |
34 | 34 | ||
35 | extern void setup_apic_nmi_watchdog (void); | 35 | extern void setup_apic_nmi_watchdog (void *); |
36 | extern int reserve_lapic_nmi(void); | 36 | extern int reserve_lapic_nmi(void); |
37 | extern void release_lapic_nmi(void); | 37 | extern void release_lapic_nmi(void); |
38 | extern void disable_timer_nmi_watchdog(void); | 38 | extern void disable_timer_nmi_watchdog(void); |
39 | extern void enable_timer_nmi_watchdog(void); | 39 | extern void enable_timer_nmi_watchdog(void); |
40 | extern void nmi_watchdog_tick (struct pt_regs * regs); | 40 | extern void nmi_watchdog_tick (struct pt_regs * regs, unsigned reason); |
41 | 41 | ||
42 | extern atomic_t nmi_active; | ||
42 | extern unsigned int nmi_watchdog; | 43 | extern unsigned int nmi_watchdog; |
43 | #define NMI_DEFAULT -1 | 44 | #define NMI_DEFAULT -1 |
44 | #define NMI_NONE 0 | 45 | #define NMI_NONE 0 |