Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 17edf2d7 authored by Len Brown's avatar Len Brown Committed by H. Peter Anvin
Browse files

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: default avatarLen 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: default avatarH. Peter Anvin <hpa@linux.intel.com>
parent 4bb82178
Loading
Loading
Loading
Loading
+5 −5
Original line number Original line Diff line number Diff line
@@ -465,11 +465,11 @@ static void __cpuinit init_intel(struct cpuinfo_x86 *c)
		u64 epb;
		u64 epb;


		rdmsrl(MSR_IA32_ENERGY_PERF_BIAS, epb);
		rdmsrl(MSR_IA32_ENERGY_PERF_BIAS, epb);
		if ((epb & 0xF) == 0) {
		if ((epb & 0xF) == ENERGY_PERF_BIAS_PERFORMANCE) {
			printk_once(KERN_WARNING, "x86: updated energy_perf_bias"
			printk_once(KERN_WARNING "ENERGY_PERF_BIAS:"
				" to 'normal' from 'performance'\n"
				" Set to 'normal', was 'performance'\n"
				"You can view and update epb via utility,"
				"ENERGY_PERF_BIAS: View and update with"
				" such as x86_energy_perf_policy(8)\n");
				" x86_energy_perf_policy(8)\n");
			epb = (epb & ~0xF) | ENERGY_PERF_BIAS_NORMAL;
			epb = (epb & ~0xF) | ENERGY_PERF_BIAS_NORMAL;
			wrmsrl(MSR_IA32_ENERGY_PERF_BIAS, epb);
			wrmsrl(MSR_IA32_ENERGY_PERF_BIAS, epb);
		}
		}