[PATCH] Add oprofile support for e300

Subsystems: linux for powerpc (32-bit and 64-bit), the rest

STALE6762d

2 messages, 1 author, 2008-02-05 · open the first message on its own page

[PATCH] Add oprofile support for e300

From: Andy Fleming <hidden>
Date: 2008-02-04 23:14:15

The e300 c3 and c4 variants support hardware performance monitor counters which
are identical to those found in the e500.

Signed-off-by: Andy Fleming <redacted>
---
 arch/powerpc/kernel/cputable.c |    4 ++--
 arch/powerpc/platforms/Kconfig |    1 +
 2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/arch/powerpc/kernel/cputable.c b/arch/powerpc/kernel/cputable.c
index c8af497..2a8f5cc 100644
--- a/arch/powerpc/kernel/cputable.c
+++ b/arch/powerpc/kernel/cputable.c
@@ -961,7 +961,7 @@ static struct cpu_spec __initdata cpu_specs[] = {
 		.cpu_setup		= __setup_cpu_603,
 		.num_pmcs		= 4,
 		.oprofile_cpu_type	= "ppc/e300",
-		.oprofile_type		= PPC_OPROFILE_BOOKE,
+		.oprofile_type		= PPC_OPROFILE_FSL_EMB,
 		.platform		= "ppc603",
 	},
 	{	/* e300c4 (e300c1, plus one IU) */
@@ -976,7 +976,7 @@ static struct cpu_spec __initdata cpu_specs[] = {
 		.machine_check		= machine_check_generic,
 		.num_pmcs		= 4,
 		.oprofile_cpu_type	= "ppc/e300",
-		.oprofile_type		= PPC_OPROFILE_BOOKE,
+		.oprofile_type		= PPC_OPROFILE_FSL_EMB,
 		.platform		= "ppc603",
 	},
 	{	/* default match, we assume split I/D cache & TB (non-601)... */
diff --git a/arch/powerpc/platforms/Kconfig b/arch/powerpc/platforms/Kconfig
index fdce10c..045b8c8 100644
--- a/arch/powerpc/platforms/Kconfig
+++ b/arch/powerpc/platforms/Kconfig
@@ -24,6 +24,7 @@ config PPC_83xx
 	select MPC83xx
 	select IPIC
 	select WANT_DEVICE_TREE
+	select FSL_EMB_PERFMON
 
 config PPC_86xx
 	bool "Freescale 86xx"
-- 
1.5.0.2.230.gfbe3d-dirty

Re: [PATCH] Add oprofile support for e300

From: Andy Fleming <hidden>
Date: 2008-02-05 00:20:02

On Feb 4, 2008, at 17:14, Andy Fleming wrote:
The e300 c3 and c4 variants support hardware performance monitor  
counters which
are identical to those found in the e500.
Please ignore.  I will send a new version that includes all the  
changes I apparently missed a change I had already committed.

I will send a new version of both oprofile patches so as to make the  
first patch easier to read, too.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help