diff options
author | Paul Mackerras <paulus@samba.org> | 2009-03-06 00:27:10 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2009-03-06 00:28:37 -0500 |
commit | aabbaa6036fd847c583f585c6bae82b5a033e6c7 (patch) | |
tree | 097a73e1546b7396b49031ab5a3e1d4c1e7c5598 /arch/powerpc/kernel/perf_counter.c | |
parent | 86028598de16538f02519141756ccf4accfc29a6 (diff) |
perfcounters/powerpc: add support for POWER5+ processors
Impact: more hardware support
This adds the back-end for the PMU on the POWER5+ processors (i.e. GS,
including GS DD3 aka POWER5++). This doesn't use the fixed-function
PMC5 and PMC6 since they don't respect the freeze conditions and don't
generate interrupts, as on POWER6.
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 4fec112386fc..162f3981fa27 100644 --- a/arch/powerpc/kernel/perf_counter.c +++ b/arch/powerpc/kernel/perf_counter.c | |||
@@ -826,6 +826,7 @@ void hw_perf_counter_setup(int cpu) | |||
826 | 826 | ||
827 | extern struct power_pmu ppc970_pmu; | 827 | extern struct power_pmu ppc970_pmu; |
828 | extern struct power_pmu power5_pmu; | 828 | extern struct power_pmu power5_pmu; |
829 | extern struct power_pmu power5p_pmu; | ||
829 | extern struct power_pmu power6_pmu; | 830 | extern struct power_pmu power6_pmu; |
830 | 831 | ||
831 | static int init_perf_counters(void) | 832 | static int init_perf_counters(void) |
@@ -848,6 +849,9 @@ static int init_perf_counters(void) | |||
848 | case PV_POWER5: | 849 | case PV_POWER5: |
849 | ppmu = &power5_pmu; | 850 | ppmu = &power5_pmu; |
850 | break; | 851 | break; |
852 | case PV_POWER5p: | ||
853 | ppmu = &power5p_pmu; | ||
854 | break; | ||
851 | case 0x3e: | 855 | case 0x3e: |
852 | ppmu = &power6_pmu; | 856 | ppmu = &power6_pmu; |
853 | break; | 857 | break; |