perfmon2 add support for ppc970 processors
PATCH 1/1 perfmon2 add support for ppc970 processors
From: Chris J Arges <[email protected]>
Allows ppc970(fx,mp,gx) to use the perfmon_power4 module.
--- arch/powerpc/perfmon/perfmon.c | 2 +- arch/powerpc/perfmon/perfmon_power4.c | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-)
arch/powerpc/perfmon/perfmon.c +1 -1
@@ -284,7 +284,7 @@ char *pfm_arch_get_pmu_module_name(void)case PV_970 :case PV_970FX :case PV_970MP : -return "perfmon_ppc970" ; +return "perfmon_power4" ;case PV_BE :return "perfmon_cell" ; }
arch/powerpc/perfmon/perfmon_power4.c +8 -1
@@ -57,8 +57,15 @@ static int pfm_power4_probe_pmu(void)unsigned long pvr =mfspr (SPRN_PVR );int ver =PVR_VER (pvr); -if ((ver ==PV_POWER4 ) || (ver == PV_POWER4p)) +switch (ver) { +case PV_POWER4 : +case PV_POWER4p: +case PV_970 : +case PV_970FX : +case PV_970MP : +case PV_970GX :return 0 ; + }return -1 ; }
Signature · 3 lines
1.5.4.5 Signed-off-by: Chris J Arges <[email protected]>
Chris,
Patch applied to both perfmon2 and perfmon3 trees.
Thanks.
Quoted 48 lines · On Fri, Nov 7, 2008 at 12:59 AM, <[email protected]> wrote:
From: Chris J Arges <[email protected]>
Allows
ppc970(fx,mp,gx)to use theperfmon_power4module.--- arch/powerpc/perfmon/perfmon.c | 2 +- arch/powerpc/perfmon/perfmon_power4.c | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-)arch/powerpc/perfmon/perfmon.c +1
-1@@ -284,7 +284,7 @@ char *pfm_arch_get_pmu_module_name(void)case PV_970 :case PV_970FX :case PV_970MP : -return "perfmon_ppc970" ; +return "perfmon_power4" ;case PV_BE :return "perfmon_cell" ; }arch/powerpc/perfmon/perfmon_power4.c +8
-2@@ -57,8 +57,15 @@ static int pfm_power4_probe_pmu(void)unsigned long pvr =mfspr (SPRN_PVR );int ver =PVR_VER (pvr); -if ((ver ==PV_POWER4 ) || (ver == PV_POWER4p)) +switch (ver) { +case PV_POWER4 : +case PV_POWER4p: +case PV_970 : +case PV_970FX : +case PV_970MP : +case PV_970GX :return 0 ; + }return -1 ; } --1.5.4.5
Signed-off-by Chris J Arges <[email protected]>