aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorHidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>2009-06-15 04:26:36 -0400
committerH. Peter Anvin <hpa@zytor.com>2009-06-16 19:56:08 -0400
commit8363fc82d36c0886292e33925391dca93f03bd50 (patch)
tree0f392edc545cbe0dd86f6d6c59a8aea458fa7ba3 /arch/x86
parent895287c0a6aa571160c47ee10de11b542166c4f9 (diff)
x86, mce: remove intel_set_thermal_handler()
and make intel_thermal_interrupt() static. Signed-off-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/include/asm/mce.h1
-rw-r--r--arch/x86/kernel/cpu/mcheck/therm_throt.c9
2 files changed, 2 insertions, 8 deletions
diff --git a/arch/x86/include/asm/mce.h b/arch/x86/include/asm/mce.h
index 3bc827c0f409..365a594b41bc 100644
--- a/arch/x86/include/asm/mce.h
+++ b/arch/x86/include/asm/mce.h
@@ -199,7 +199,6 @@ extern void (*mce_threshold_vector)(void);
199 * Thermal handler 199 * Thermal handler
200 */ 200 */
201 201
202void intel_set_thermal_handler(void);
203void intel_init_thermal(struct cpuinfo_x86 *c); 202void intel_init_thermal(struct cpuinfo_x86 *c);
204 203
205#ifdef CONFIG_X86_NEW_MCE 204#ifdef CONFIG_X86_NEW_MCE
diff --git a/arch/x86/kernel/cpu/mcheck/therm_throt.c b/arch/x86/kernel/cpu/mcheck/therm_throt.c
index 7a508aaafcea..7c7944cc515d 100644
--- a/arch/x86/kernel/cpu/mcheck/therm_throt.c
+++ b/arch/x86/kernel/cpu/mcheck/therm_throt.c
@@ -202,7 +202,7 @@ device_initcall(thermal_throttle_init_device);
202#endif /* CONFIG_SYSFS */ 202#endif /* CONFIG_SYSFS */
203 203
204/* Thermal transition interrupt handler */ 204/* Thermal transition interrupt handler */
205void intel_thermal_interrupt(void) 205static void intel_thermal_interrupt(void)
206{ 206{
207 __u64 msr_val; 207 __u64 msr_val;
208 208
@@ -231,11 +231,6 @@ asmlinkage void smp_thermal_interrupt(struct pt_regs *regs)
231 ack_APIC_irq(); 231 ack_APIC_irq();
232} 232}
233 233
234void intel_set_thermal_handler(void)
235{
236 smp_thermal_vector = intel_thermal_interrupt;
237}
238
239void intel_init_thermal(struct cpuinfo_x86 *c) 234void intel_init_thermal(struct cpuinfo_x86 *c)
240{ 235{
241 unsigned int cpu = smp_processor_id(); 236 unsigned int cpu = smp_processor_id();
@@ -278,7 +273,7 @@ void intel_init_thermal(struct cpuinfo_x86 *c)
278 wrmsr(MSR_IA32_THERM_INTERRUPT, 273 wrmsr(MSR_IA32_THERM_INTERRUPT,
279 l | (THERM_INT_LOW_ENABLE | THERM_INT_HIGH_ENABLE), h); 274 l | (THERM_INT_LOW_ENABLE | THERM_INT_HIGH_ENABLE), h);
280 275
281 intel_set_thermal_handler(); 276 smp_thermal_vector = intel_thermal_interrupt;
282 277
283 rdmsr(MSR_IA32_MISC_ENABLE, l, h); 278 rdmsr(MSR_IA32_MISC_ENABLE, l, h);
284 wrmsr(MSR_IA32_MISC_ENABLE, l | MSR_IA32_MISC_ENABLE_TM1, h); 279 wrmsr(MSR_IA32_MISC_ENABLE, l | MSR_IA32_MISC_ENABLE_TM1, h);