MIPS: Oprofile: Add 5K, 20K and 25K support.
authorRalf Baechle <ralf@linux-mips.org>
Fri, 9 Dec 2005 12:42:13 +0000 (12:42 +0000)
committer <ralf@denk.linux-mips.net> <>
Tue, 10 Jan 2006 13:39:07 +0000 (13:39 +0000)
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/oprofile/common.c
arch/mips/oprofile/op_model_mipsxx.c

index dd2cc42f1b6dc5931638843c45b26f7728f5fa39..53f9889b30eda3c278cf4664e463a793e36e9948 100644 (file)
@@ -75,7 +75,10 @@ int __init oprofile_arch_init(struct oprofile_operations *ops)
        int res;
 
        switch (current_cpu_data.cputype) {
+       case CPU_5KC:
+       case CPU_20KC:
        case CPU_24K:
+       case CPU_25KF:
                lmodel = &op_model_mipsxx;
                break;
 
index d97bbff031e5700f28352928ea65a70d61715363..1d1eee407faf971a86b8f63b543aae90957d8ddd 100644 (file)
@@ -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");