mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
perf/x86: Fix PMU detection printout when no PMU is detected
Ran into this cryptic PMU bootup log recently: [ 0.124047] Performance Events: [ 0.125000] smpboot: ... Turns out we print this if no PMU is detected. Fall back to the right condition so that the following is printed: [ 0.122381] Performance Events: no PMU driver, software events only. Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Link: http://lkml.kernel.org/n/tip-u2fwaUffakjp0qkpRfqljgsn@git.kernel.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
This commit is contained in:
parent
c1bf21455d
commit
8a3da6c7d0
1 changed files with 1 additions and 1 deletions
|
@ -1506,7 +1506,7 @@ static int __init init_hw_perf_events(void)
|
||||||
err = amd_pmu_init();
|
err = amd_pmu_init();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return 0;
|
err = -ENOTSUPP;
|
||||||
}
|
}
|
||||||
if (err != 0) {
|
if (err != 0) {
|
||||||
pr_cont("no PMU driver, software events only.\n");
|
pr_cont("no PMU driver, software events only.\n");
|
||||||
|
|
Loading…
Add table
Reference in a new issue