diff options
author | Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com> | 2009-06-15 04:23:28 -0400 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2009-06-16 19:56:07 -0400 |
commit | 3adacb70d32046ccc9f0333b50bb2ba1582ccdf4 (patch) | |
tree | 6439d0121f95b2592cf933949586c54bcac4589a | |
parent | c697836985e18d9c34897428ba563b13044a6dcd (diff) |
x86, mce: unify smp_thermal_interrupt, prepare p4
Remove unused argument regs from handlers, and use inc_irq_stat.
Signed-off-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r-- | arch/x86/kernel/cpu/mcheck/p4.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/arch/x86/kernel/cpu/mcheck/p4.c b/arch/x86/kernel/cpu/mcheck/p4.c index 8d3e40edd64d..ddeed6e295af 100644 --- a/arch/x86/kernel/cpu/mcheck/p4.c +++ b/arch/x86/kernel/cpu/mcheck/p4.c | |||
@@ -35,7 +35,7 @@ static int mce_num_extended_msrs; | |||
35 | 35 | ||
36 | #ifdef CONFIG_X86_MCE_P4THERMAL | 36 | #ifdef CONFIG_X86_MCE_P4THERMAL |
37 | 37 | ||
38 | static void unexpected_thermal_interrupt(struct pt_regs *regs) | 38 | static void unexpected_thermal_interrupt(void) |
39 | { | 39 | { |
40 | printk(KERN_ERR "CPU%d: Unexpected LVT TMR interrupt!\n", | 40 | printk(KERN_ERR "CPU%d: Unexpected LVT TMR interrupt!\n", |
41 | smp_processor_id()); | 41 | smp_processor_id()); |
@@ -43,7 +43,7 @@ static void unexpected_thermal_interrupt(struct pt_regs *regs) | |||
43 | } | 43 | } |
44 | 44 | ||
45 | /* P4/Xeon Thermal transition interrupt handler: */ | 45 | /* P4/Xeon Thermal transition interrupt handler: */ |
46 | static void intel_thermal_interrupt(struct pt_regs *regs) | 46 | static void intel_thermal_interrupt(void) |
47 | { | 47 | { |
48 | __u64 msr_val; | 48 | __u64 msr_val; |
49 | 49 | ||
@@ -54,14 +54,13 @@ static void intel_thermal_interrupt(struct pt_regs *regs) | |||
54 | } | 54 | } |
55 | 55 | ||
56 | /* Thermal interrupt handler for this CPU setup: */ | 56 | /* Thermal interrupt handler for this CPU setup: */ |
57 | static void (*vendor_thermal_interrupt)(struct pt_regs *regs) = | 57 | static void (*vendor_thermal_interrupt)(void) = unexpected_thermal_interrupt; |
58 | unexpected_thermal_interrupt; | ||
59 | 58 | ||
60 | void smp_thermal_interrupt(struct pt_regs *regs) | 59 | void smp_thermal_interrupt(struct pt_regs *regs) |
61 | { | 60 | { |
62 | irq_enter(); | 61 | irq_enter(); |
63 | vendor_thermal_interrupt(regs); | 62 | vendor_thermal_interrupt(); |
64 | __get_cpu_var(irq_stat).irq_thermal_count++; | 63 | inc_irq_stat(irq_thermal_count); |
65 | irq_exit(); | 64 | irq_exit(); |
66 | } | 65 | } |
67 | 66 | ||