aboutsummaryrefslogtreecommitdiff
path: root/arch/powerpc/kernel/perf_counter.c
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2009-01-09 21:05:35 +1100
committerPaul Mackerras <paulus@samba.org>2009-01-10 16:35:01 +1100
commitf78628374a13bc150db77c6e02d4f2c0a7f932ef (patch)
tree2b25cd520d8fcc00258621fb50772e75091eb4ce /arch/powerpc/kernel/perf_counter.c
parent16b067993dee3dfde61b20027e0b168dc06201ee (diff)
powerpc/perf_counter: Add support for POWER6
This adds the back-end for the PMU on the POWER6 processor. Fortunately, the event selection hardware is somewhat simpler on POWER6 than on other POWER family processors, so the constraints fit into only 32 bits. Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel/perf_counter.c')
-rw-r--r--arch/powerpc/kernel/perf_counter.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/perf_counter.c b/arch/powerpc/kernel/perf_counter.c
index 5561ecb02a4..df3fe057dee 100644
--- a/arch/powerpc/kernel/perf_counter.c
+++ b/arch/powerpc/kernel/perf_counter.c
@@ -742,6 +742,7 @@ static void perf_counter_interrupt(struct pt_regs *regs)
}
extern struct power_pmu ppc970_pmu;
+extern struct power_pmu power6_pmu;
static int init_perf_counters(void)
{
@@ -760,6 +761,9 @@ static int init_perf_counters(void)
case PV_970MP:
ppmu = &ppc970_pmu;
break;
+ case 0x3e:
+ ppmu = &power6_pmu;
+ break;
}
return 0;
}