perf: Fix bogus kernel printk
Andy spotted the fail in what was intended as a conditional printk level.
Reported-by: Andy Lutomirski <luto@amacapital.net>
Fixes: cc6cd47e73
("perf/x86: Tone down kernel messages when the PMU check fails in a virtual environment")
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: http://lkml.kernel.org/r/20141007124757.GH19379@twins.programming.kicks-ass.net
Signed-off-by: Ingo Molnar <mingo@kernel.org>
This commit is contained in:
parent
e53f6124af
commit
65d71fe137
1 changed files with 3 additions and 2 deletions
|
@ -243,8 +243,9 @@ static bool check_hw_exists(void)
|
||||||
|
|
||||||
msr_fail:
|
msr_fail:
|
||||||
printk(KERN_CONT "Broken PMU hardware detected, using software events only.\n");
|
printk(KERN_CONT "Broken PMU hardware detected, using software events only.\n");
|
||||||
printk(boot_cpu_has(X86_FEATURE_HYPERVISOR) ? KERN_INFO : KERN_ERR
|
printk("%sFailed to access perfctr msr (MSR %x is %Lx)\n",
|
||||||
"Failed to access perfctr msr (MSR %x is %Lx)\n", reg, val_new);
|
boot_cpu_has(X86_FEATURE_HYPERVISOR) ? KERN_INFO : KERN_ERR,
|
||||||
|
reg, val_new);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue