android_kernel_samsung_msm8976/arch/powerpc
Paul Mackerras ef923214a4 perf_counter: powerpc: use u64 for event codes internally
Although the perf_counter API allows 63-bit raw event codes,
internally in the powerpc back-end we had been using 32-bit
event codes.  This expands them to 64 bits so that we can add
bits for specifying threshold start/stop events and instruction
sampling modes later.

This also corrects the return value of can_go_on_limited_pmc;
we were returning an event code rather than just a 0/1 value in
some circumstances. That didn't particularly matter while event
codes were 32-bit, but now that event codes are 64-bit it
might, so this fixes it.

[ Impact: extend PowerPC perfcounter interfaces from u32 to u64 ]

Signed-off-by: Paul Mackerras <paulus@samba.org>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
LKML-Reference: <18955.36874.472452.353104@drongo.ozlabs.ibm.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2009-05-15 16:38:55 +02:00
..
boot Merge branch 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/jwboyer/powerpc-4xx into merge 2009-04-28 10:47:16 +10:00
configs Merge branch 'merge' of git://git.secretlab.ca/git/linux-2.6 into merge 2009-04-22 13:02:09 +10:00
include/asm perf_counter: powerpc: use u64 for event codes internally 2009-05-15 16:38:55 +02:00
kernel perf_counter: powerpc: use u64 for event codes internally 2009-05-15 16:38:55 +02:00
kvm
lib
math-emu
mm Merge branch 'linus' into perfcounters/core 2009-04-29 14:47:05 +02:00
oprofile
platforms Merge branch 'linus' into perfcounters/core 2009-04-29 14:47:05 +02:00
sysdev Merge branch 'merge' of git://git.secretlab.ca/git/linux-2.6 into merge 2009-04-22 13:02:09 +10:00
xmon
Kconfig powerpc: Allow 256kB pages with SHMEM 2009-04-15 15:23:53 +10:00
Kconfig.debug
Makefile