aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLen Brown <len.brown@intel.com>2011-07-15 17:37:15 -0400
committerH. Peter Anvin <hpa@linux.intel.com>2011-07-15 18:13:55 -0400
commit17edf2d79f1ea6dfdb4c444801d928953b9f98d6 (patch)
tree510fa40dd5a702878655fa20debbd91f6f6bbe57
parent4bb82178f5cb074783aaeaa06f9f840c67af7707 (diff)
x86, intel, power: Correct the MSR_IA32_ENERGY_PERF_BIAS message
Fix the printk_once() so that it actually prints (didn't print before due to a stray comma.) [ hpa: changed to an incremental patch and adjusted the description accordingly. ] Signed-off-by: Len Brown <len.brown@intel.com> Link: http://lkml.kernel.org/r/alpine.LFD.2.02.1107151732480.18606@x980 Cc: <table@kernel.org> Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
-rw-r--r--arch/x86/kernel/cpu/intel.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/x86/kernel/cpu/intel.c b/arch/x86/kernel/cpu/intel.c
index da0d779ecd9e..ed6086eedf1d 100644
--- a/arch/x86/kernel/cpu/intel.c
+++ b/arch/x86/kernel/cpu/intel.c
@@ -465,11 +465,11 @@ static void __cpuinit init_intel(struct cpuinfo_x86 *c)
465 u64 epb; 465 u64 epb;
466 466
467 rdmsrl(MSR_IA32_ENERGY_PERF_BIAS, epb); 467 rdmsrl(MSR_IA32_ENERGY_PERF_BIAS, epb);
468 if ((epb & 0xF) == 0) { 468 if ((epb & 0xF) == ENERGY_PERF_BIAS_PERFORMANCE) {
469 printk_once(KERN_WARNING, "x86: updated energy_perf_bias" 469 printk_once(KERN_WARNING "ENERGY_PERF_BIAS:"
470 " to 'normal' from 'performance'\n" 470 " Set to 'normal', was 'performance'\n"
471 "You can view and update epb via utility," 471 "ENERGY_PERF_BIAS: View and update with"
472 " such as x86_energy_perf_policy(8)\n"); 472 " x86_energy_perf_policy(8)\n");
473 epb = (epb & ~0xF) | ENERGY_PERF_BIAS_NORMAL; 473 epb = (epb & ~0xF) | ENERGY_PERF_BIAS_NORMAL;
474 wrmsrl(MSR_IA32_ENERGY_PERF_BIAS, epb); 474 wrmsrl(MSR_IA32_ENERGY_PERF_BIAS, epb);
475 } 475 }