Skip to contentSkip to conversation

Add oprofile support for e300

PATCH Applied Andy Fleming 2 participants 2 messages Feb 5, 2008 – Feb 6, 2008 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 Add oprofile support for e300

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

---
 arch/powerpc/kernel/cputable.c |    6 ++++++
 arch/powerpc/platforms/Kconfig |    1 +
 2 files changed, 7 insertions(+), 0 deletions(-)
arch/powerpc/kernel/cputable.c +6 -0
index 98a1c9e..2a8f5cc 100644
@@ -959,6 +959,9 @@ static struct cpu_spec __initdata cpu_specs[] = {
 		.icache_bsize		= 32,
 		.dcache_bsize		= 32,
 		.cpu_setup		= __setup_cpu_603,
+		.num_pmcs		= 4,
+		.oprofile_cpu_type	= "ppc/e300",
+		.oprofile_type		= PPC_OPROFILE_FSL_EMB,
 		.platform		= "ppc603",
 	},
 	{	/* e300c4 (e300c1, plus one IU) */
@@ -971,6 +974,9 @@ static struct cpu_spec __initdata cpu_specs[] = {
 		.dcache_bsize		= 32,
 		.cpu_setup		= __setup_cpu_603,
 		.machine_check		= machine_check_generic,
+		.num_pmcs		= 4,
+		.oprofile_cpu_type	= "ppc/e300",
+		.oprofile_type		= PPC_OPROFILE_FSL_EMB,
 		.platform		= "ppc603",
 	},
 	{	/* default match, we assume split I/D cache & TB (non-601)... */
arch/powerpc/platforms/Kconfig +1 -0
index fdce10c..045b8c8 100644
@@ -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"
Signature · 1 line
1.5.0.2.230.gfbe3d-dirty
Applied
#1 lore raw
Quoted 8 lines · Andy Fleming

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

---

arch/powerpc/kernel/cputable.c |    6 ++++++
arch/powerpc/platforms/Kconfig |    1 +
2 files changed, 7 insertions(+), 0 deletions(-)

applied.

- k