perfcounters/powerpc: Add support for POWER5 processors
authorPaul Mackerras <paulus@samba.org>
Tue, 24 Feb 2009 00:33:56 +0000 (11:33 +1100)
committerPaul Mackerras <paulus@samba.org>
Thu, 26 Feb 2009 04:36:48 +0000 (15:36 +1100)
commit742bd95ba96e19b3f7196c3a0834ebc17c8ba006
treeb55f7bc735577571b6bb71dd97ee73ce6b343f9d
parentd095cd46dac104e4d2a4967c7c19b55a12f78240
perfcounters/powerpc: Add support for POWER5 processors

This adds the back-end for the PMU on the POWER5 processor.  This knows
how to use the fixed-function PMC5 and PMC6 (instructions completed and
run cycles).  Unlike POWER6, PMC5/6 obey the freeze conditions and can
generate interrupts, so their use doesn't impose any extra restrictions.

POWER5+ is different and is not supported by this patch.

Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/Makefile
arch/powerpc/kernel/perf_counter.c
arch/powerpc/kernel/power5-pmu.c [new file with mode: 0644]