perf/x86: Fix PMU detection printout when no PMU is detected
authorIngo Molnar <mingo@kernel.org>
Sat, 28 Sep 2013 13:48:48 +0000 (15:48 +0200)
committerIngo Molnar <mingo@kernel.org>
Sat, 28 Sep 2013 13:48:48 +0000 (15:48 +0200)
commit8a3da6c7d0031fcb6a0d17f9c7a68b0e01f52855
treeb312e40b52ceebb7d61a6a54f22dc231d4c15c55
parentc1bf21455d7053ad996426a4783745cf3592a5f3
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>
arch/x86/kernel/cpu/perf_event.c