diff options
| -rw-r--r-- | arch/x86/kernel/cpu/mcheck/therm_throt.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/x86/kernel/cpu/mcheck/therm_throt.c b/arch/x86/kernel/cpu/mcheck/therm_throt.c index 8bc64cfbe936..5957a93e5173 100644 --- a/arch/x86/kernel/cpu/mcheck/therm_throt.c +++ b/arch/x86/kernel/cpu/mcheck/therm_throt.c | |||
| @@ -116,11 +116,14 @@ static int therm_throt_process(int curr) | |||
| 116 | cpu, __get_cpu_var(thermal_throttle_count)); | 116 | cpu, __get_cpu_var(thermal_throttle_count)); |
| 117 | 117 | ||
| 118 | add_taint(TAINT_MACHINE_CHECK); | 118 | add_taint(TAINT_MACHINE_CHECK); |
| 119 | } else if (was_throttled) { | 119 | return 1; |
| 120 | } | ||
| 121 | if (was_throttled) { | ||
| 120 | printk(KERN_INFO "CPU%d: Temperature/speed normal\n", cpu); | 122 | printk(KERN_INFO "CPU%d: Temperature/speed normal\n", cpu); |
| 123 | return 1; | ||
| 121 | } | 124 | } |
| 122 | 125 | ||
| 123 | return 1; | 126 | return 0; |
| 124 | } | 127 | } |
| 125 | 128 | ||
| 126 | #ifdef CONFIG_SYSFS | 129 | #ifdef CONFIG_SYSFS |
