diff options
author | Andy Fleming <afleming@freescale.com> | 2008-02-05 01:28:07 +0100 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2008-02-06 06:37:58 +0100 |
commit | 1347a2c1eb61fce8b5085801761c7b63f9e7ba8b (patch) | |
tree | 553a7b0620cbe1f399a51447413ccbb8372c3d8f /arch/powerpc/kernel | |
parent | [POWERPC] Made FSL Book-E PMC support more generic (diff) | |
download | linux-1347a2c1eb61fce8b5085801761c7b63f9e7ba8b.tar.xz linux-1347a2c1eb61fce8b5085801761c7b63f9e7ba8b.zip |
[POWERPC} 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.
Signed-off-by: Andy Fleming <afleming@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kernel')
-rw-r--r-- | 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 98a1c9e6b9fa..2a8f5cc5184f 100644 --- a/arch/powerpc/kernel/cputable.c +++ b/arch/powerpc/kernel/cputable.c @@ -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)... */ |