x86, intel, power: Correct the MSR_IA32_ENERGY_PERF_BIAS message
[linux-flexiantxendom0-natty.git] / arch / x86 / kernel / cpu / intel.c
index 7c1ca07..24cba78 100644 (file)
@@ -457,11 +457,11 @@ static void __cpuinit init_intel(struct cpuinfo_x86 *c)
                u64 epb;
 
                rdmsrl(MSR_IA32_ENERGY_PERF_BIAS, epb);
-               if ((epb & 0xF) == 0) {
-                       printk_once(KERN_WARNING, "x86: updated energy_perf_bias"
-                               " to 'normal' from 'performance'\n"
-                               "You can view and update epb via utility,"
-                               " such as x86_energy_perf_policy(8)\n");
+               if ((epb & 0xF) == ENERGY_PERF_BIAS_PERFORMANCE) {
+                       printk_once(KERN_WARNING "ENERGY_PERF_BIAS:"
+                               " Set to 'normal', was 'performance'\n"
+                               "ENERGY_PERF_BIAS: View and update with"
+                               " x86_energy_perf_policy(8)\n");
                        epb = (epb & ~0xF) | ENERGY_PERF_BIAS_NORMAL;
                        wrmsrl(MSR_IA32_ENERGY_PERF_BIAS, epb);
                }