diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2005-12-09 13:42:13 +0100 |
---|---|---|
committer | <ralf@denk.linux-mips.net> | 2006-01-10 14:39:07 +0100 |
commit | 2065988e9fb1628de7958b0f7f709b93302f7b97 (patch) | |
tree | 2c452d4390601ac0200fed89c22b25a0cbcc9ee8 /arch/mips/oprofile/op_model_mipsxx.c | |
parent | MIPS: Oprofile: Print error message if the CPU happen to have no counters. (diff) | |
download | linux-2065988e9fb1628de7958b0f7f709b93302f7b97.tar.xz linux-2065988e9fb1628de7958b0f7f709b93302f7b97.zip |
MIPS: Oprofile: Add 5K, 20K and 25K support.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/oprofile/op_model_mipsxx.c')
-rw-r--r-- | arch/mips/oprofile/op_model_mipsxx.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/mips/oprofile/op_model_mipsxx.c b/arch/mips/oprofile/op_model_mipsxx.c index d97bbff031e5..1d1eee407faf 100644 --- a/arch/mips/oprofile/op_model_mipsxx.c +++ b/arch/mips/oprofile/op_model_mipsxx.c @@ -189,10 +189,22 @@ static int __init mipsxx_init(void) op_model_mipsxx.num_counters = counters; switch (current_cpu_data.cputype) { + case CPU_20KC: + op_model_mipsxx.cpu_type = "mips/20K"; + break; + case CPU_24K: op_model_mipsxx.cpu_type = "mips/24K"; break; + case CPU_25KF: + op_model_mipsxx.cpu_type = "mips/25K"; + break; + + case CPU_5KC: + op_model_mipsxx.cpu_type = "mips/5K"; + break; + default: printk(KERN_ERR "Profiling unsupported for this CPU\n"); |