diff options
author | Don Zickus <dzickus@redhat.com> | 2006-09-26 04:52:27 -0400 |
---|---|---|
committer | Andi Kleen <andi@basil.nowhere.org> | 2006-09-26 04:52:27 -0400 |
commit | 2fbe7b25c8edaf2d10e6c1a4cc9f8afe714c4764 (patch) | |
tree | e4012ae3cd4519cba1836668237f077c60fb1086 /include | |
parent | 957dc87c1bd849440f0eef27e2ade67387001e13 (diff) |
[PATCH] i386/x86-64: Remove un/set_nmi_callback and reserve/release_lapic_nmi functions
Removes the un/set_nmi_callback and reserve/release_lapic_nmi functions as
they are no longer needed. The various subsystems are modified to register
with the die_notifier instead.
Also includes compile fixes by Andrew Morton.
Signed-off-by: Don Zickus <dzickus@redhat.com>
Signed-off-by: Andi Kleen <ak@suse.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-i386/nmi.h | 21 | ||||
-rw-r--r-- | include/asm-x86_64/nmi.h | 21 |
2 files changed, 4 insertions, 38 deletions
diff --git a/include/asm-i386/nmi.h b/include/asm-i386/nmi.h index da0e0b4e9139..34d6bf063b6e 100644 --- a/include/asm-i386/nmi.h +++ b/include/asm-i386/nmi.h | |||
@@ -6,24 +6,13 @@ | |||
6 | 6 | ||
7 | #include <linux/pm.h> | 7 | #include <linux/pm.h> |
8 | 8 | ||
9 | struct pt_regs; | ||
10 | |||
11 | typedef int (*nmi_callback_t)(struct pt_regs * regs, int cpu); | ||
12 | |||
13 | /** | ||
14 | * set_nmi_callback | ||
15 | * | ||
16 | * Set a handler for an NMI. Only one handler may be | ||
17 | * set. Return 1 if the NMI was handled. | ||
18 | */ | ||
19 | void set_nmi_callback(nmi_callback_t callback); | ||
20 | |||
21 | /** | 9 | /** |
22 | * unset_nmi_callback | 10 | * do_nmi_callback |
23 | * | 11 | * |
24 | * Remove the handler previously set. | 12 | * Check to see if a callback exists and execute it. Return 1 |
13 | * if the handler exists and was handled successfully. | ||
25 | */ | 14 | */ |
26 | void unset_nmi_callback(void); | 15 | int do_nmi_callback(struct pt_regs *regs, int cpu); |
27 | 16 | ||
28 | extern int avail_to_resrv_perfctr_nmi_bit(unsigned int); | 17 | extern int avail_to_resrv_perfctr_nmi_bit(unsigned int); |
29 | extern int avail_to_resrv_perfctr_nmi(unsigned int); | 18 | extern int avail_to_resrv_perfctr_nmi(unsigned int); |
@@ -33,8 +22,6 @@ extern int reserve_evntsel_nmi(unsigned int); | |||
33 | extern void release_evntsel_nmi(unsigned int); | 22 | extern void release_evntsel_nmi(unsigned int); |
34 | 23 | ||
35 | extern void setup_apic_nmi_watchdog (void *); | 24 | extern void setup_apic_nmi_watchdog (void *); |
36 | extern int reserve_lapic_nmi(void); | ||
37 | extern void release_lapic_nmi(void); | ||
38 | extern void disable_timer_nmi_watchdog(void); | 25 | extern void disable_timer_nmi_watchdog(void); |
39 | extern void enable_timer_nmi_watchdog(void); | 26 | extern void enable_timer_nmi_watchdog(void); |
40 | extern int nmi_watchdog_tick (struct pt_regs * regs, unsigned reason); | 27 | extern int nmi_watchdog_tick (struct pt_regs * regs, unsigned reason); |
diff --git a/include/asm-x86_64/nmi.h b/include/asm-x86_64/nmi.h index 8f02a2a416e6..8818c39d34e0 100644 --- a/include/asm-x86_64/nmi.h +++ b/include/asm-x86_64/nmi.h | |||
@@ -7,25 +7,6 @@ | |||
7 | #include <linux/pm.h> | 7 | #include <linux/pm.h> |
8 | #include <asm/io.h> | 8 | #include <asm/io.h> |
9 | 9 | ||
10 | struct pt_regs; | ||
11 | |||
12 | typedef int (*nmi_callback_t)(struct pt_regs * regs, int cpu); | ||
13 | |||
14 | /** | ||
15 | * set_nmi_callback | ||
16 | * | ||
17 | * Set a handler for an NMI. Only one handler may be | ||
18 | * set. Return 1 if the NMI was handled. | ||
19 | */ | ||
20 | void set_nmi_callback(nmi_callback_t callback); | ||
21 | |||
22 | /** | ||
23 | * unset_nmi_callback | ||
24 | * | ||
25 | * Remove the handler previously set. | ||
26 | */ | ||
27 | void unset_nmi_callback(void); | ||
28 | |||
29 | /** | 10 | /** |
30 | * do_nmi_callback | 11 | * do_nmi_callback |
31 | * | 12 | * |
@@ -72,8 +53,6 @@ extern int reserve_evntsel_nmi(unsigned int); | |||
72 | extern void release_evntsel_nmi(unsigned int); | 53 | extern void release_evntsel_nmi(unsigned int); |
73 | 54 | ||
74 | extern void setup_apic_nmi_watchdog (void *); | 55 | extern void setup_apic_nmi_watchdog (void *); |
75 | extern int reserve_lapic_nmi(void); | ||
76 | extern void release_lapic_nmi(void); | ||
77 | extern void disable_timer_nmi_watchdog(void); | 56 | extern void disable_timer_nmi_watchdog(void); |
78 | extern void enable_timer_nmi_watchdog(void); | 57 | extern void enable_timer_nmi_watchdog(void); |
79 | extern int nmi_watchdog_tick (struct pt_regs * regs, unsigned reason); | 58 | extern int nmi_watchdog_tick (struct pt_regs * regs, unsigned reason); |