aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>2009-06-15 04:23:28 -0400
committerH. Peter Anvin <hpa@zytor.com>2009-06-16 19:56:07 -0400
commit3adacb70d32046ccc9f0333b50bb2ba1582ccdf4 (patch)
tree6439d0121f95b2592cf933949586c54bcac4589a
parentc697836985e18d9c34897428ba563b13044a6dcd (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.c11
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
38static void unexpected_thermal_interrupt(struct pt_regs *regs) 38static 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: */
46static void intel_thermal_interrupt(struct pt_regs *regs) 46static 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: */
57static void (*vendor_thermal_interrupt)(struct pt_regs *regs) = 57static void (*vendor_thermal_interrupt)(void) = unexpected_thermal_interrupt;
58 unexpected_thermal_interrupt;
59 58
60void smp_thermal_interrupt(struct pt_regs *regs) 59void 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