diff options
author | Paul Mackerras <paulus@samba.org> | 2009-01-09 13:05:35 +0300 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2009-01-10 08:35:01 +0300 |
commit | f78628374a13bc150db77c6e02d4f2c0a7f932ef (patch) | |
tree | 2b25cd520d8fcc00258621fb50772e75091eb4ce /arch/powerpc/kernel/perf_counter.c | |
parent | 16b067993dee3dfde61b20027e0b168dc06201ee (diff) | |
download | linux-f78628374a13bc150db77c6e02d4f2c0a7f932ef.tar.xz |
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.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/perf_counter.c b/arch/powerpc/kernel/perf_counter.c index 5561ecb02a4b..df3fe057dee9 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; } |