powerpc/perf_events: Fix priority of MSR HV vs PR bits
commit7abb840b496f834a71a8943bb189683da320f047
authorMichael Neuling <mikey@neuling.org>
Wed, 14 Oct 2009 19:32:15 +0000 (14 19:32 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 27 Oct 2009 05:42:38 +0000 (27 16:42 +1100)
tree6444e23443d1ddd9c5d7aa7198e6d8c401dda0c0
parent964fe080d94db82a3268443e9b9ece4c60246414
powerpc/perf_events: Fix priority of MSR HV vs PR bits

The architecture defines that if MSR PR is set we are in problem state
irrespective of the HV bit.  This fixes perf events to reflect this.

Also, on bare metal systems, samples taken in Linux will now be reported
as kernel rather than hypervisor.

Signed-off-by: Michael Neuling <mikey@neuling.org>
CC: paulus@samba.org
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/perf_event.c