powerpc/perf_counter: Add support for PPC970 family
authorPaul Mackerras <paulus@samba.org>
Sat, 10 Jan 2009 05:34:07 +0000 (16:34 +1100)
committerPaul Mackerras <paulus@samba.org>
Sat, 10 Jan 2009 05:34:07 +0000 (16:34 +1100)
commit16b067993dee3dfde61b20027e0b168dc06201ee
treed9a2370ad097306bb19ff297e191b53c6c89963c
parent4574910e5087085a1f330ff8373cee4503f5c77c
powerpc/perf_counter: Add support for PPC970 family

This adds the back-end for the PMU on the PPC970 family.

The PPC970 allows events from the ISU to be selected in two different
ways.  Rather than use alternative event codes to express this, we
instead use a single encoding for ISU events and express the
resulting constraint (that you can't select events from all three
of FPU/IFU/VPU, ISU and IDU/STS at the same time, since they all come
in through only 2 multiplexers) using a NAND constraint field, and
work out which multiplexer is used for ISU events at compute_mmcr
time.

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