Patchwork [2/2] powerpc: oprofile: enable support for ppc750 processors

login
register
mail settings
Submitter Octavian Purdila
Date Jan. 6, 2009, 12:55 p.m.
Message ID <1231246535-13151-3-git-send-email-opurdila@ixiacom.com>
Download mbox | patch
Permalink /patch/16802/
State Changes Requested
Delegated to: Benjamin Herrenschmidt
Headers show

Comments

Octavian Purdila - Jan. 6, 2009, 12:55 p.m.
Signed-off-by: Octavian Purdila <opurdila@ixiacom.com>
---
 arch/powerpc/kernel/cputable.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
Benjamin Herrenschmidt - March 4, 2009, 4:47 a.m.
On Tue, 2009-01-06 at 14:55 +0200, Octavian Purdila wrote:
> Signed-off-by: Octavian Purdila <opurdila@ixiacom.com>


So I'm going to merge 1/2 but this one should really be changed to
advertise ppc/750 in oprofile_cpu_type (ie. to userspace).

Cheers,
Ben.

>  arch/powerpc/kernel/cputable.c |    6 ++++++
>  1 files changed, 6 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/powerpc/kernel/cputable.c b/arch/powerpc/kernel/cputable.c
> index 923f87a..4e20cfb 100644
> --- a/arch/powerpc/kernel/cputable.c
> +++ b/arch/powerpc/kernel/cputable.c
> @@ -726,6 +726,8 @@ static struct cpu_spec __initdata cpu_specs[] = {
>  		.cpu_setup		= __setup_cpu_750,
>  		.machine_check		= machine_check_generic,
>  		.platform		= "ppc750",
> +		.oprofile_cpu_type      = "ppc/7450",
> +		.oprofile_type		= PPC_OPROFILE_G4,
>  	},
>  	{	/* 750FX rev 2.0 must disable HID0[DPM] */
>  		.pvr_mask		= 0xffffffff,
> @@ -741,6 +743,8 @@ static struct cpu_spec __initdata cpu_specs[] = {
>  		.cpu_setup		= __setup_cpu_750,
>  		.machine_check		= machine_check_generic,
>  		.platform		= "ppc750",
> +		.oprofile_cpu_type      = "ppc/7450",
> +		.oprofile_type		= PPC_OPROFILE_G4,
>  	},
>  	{	/* 750FX (All revs except 2.0) */
>  		.pvr_mask		= 0xffff0000,
> @@ -756,6 +760,8 @@ static struct cpu_spec __initdata cpu_specs[] = {
>  		.cpu_setup		= __setup_cpu_750fx,
>  		.machine_check		= machine_check_generic,
>  		.platform		= "ppc750",
> +		.oprofile_cpu_type      = "ppc/7450",
> +		.oprofile_type		= PPC_OPROFILE_G4,
>  	},
>  	{	/* 750GX */
>  		.pvr_mask		= 0xffff0000,

Patch

diff --git a/arch/powerpc/kernel/cputable.c b/arch/powerpc/kernel/cputable.c
index 923f87a..4e20cfb 100644
--- a/arch/powerpc/kernel/cputable.c
+++ b/arch/powerpc/kernel/cputable.c
@@ -726,6 +726,8 @@  static struct cpu_spec __initdata cpu_specs[] = {
 		.cpu_setup		= __setup_cpu_750,
 		.machine_check		= machine_check_generic,
 		.platform		= "ppc750",
+		.oprofile_cpu_type      = "ppc/7450",
+		.oprofile_type		= PPC_OPROFILE_G4,
 	},
 	{	/* 750FX rev 2.0 must disable HID0[DPM] */
 		.pvr_mask		= 0xffffffff,
@@ -741,6 +743,8 @@  static struct cpu_spec __initdata cpu_specs[] = {
 		.cpu_setup		= __setup_cpu_750,
 		.machine_check		= machine_check_generic,
 		.platform		= "ppc750",
+		.oprofile_cpu_type      = "ppc/7450",
+		.oprofile_type		= PPC_OPROFILE_G4,
 	},
 	{	/* 750FX (All revs except 2.0) */
 		.pvr_mask		= 0xffff0000,
@@ -756,6 +760,8 @@  static struct cpu_spec __initdata cpu_specs[] = {
 		.cpu_setup		= __setup_cpu_750fx,
 		.machine_check		= machine_check_generic,
 		.platform		= "ppc750",
+		.oprofile_cpu_type      = "ppc/7450",
+		.oprofile_type		= PPC_OPROFILE_G4,
 	},
 	{	/* 750GX */
 		.pvr_mask		= 0xffff0000,