]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/mips/oprofile/common.c
[MIPS] Fix the installation condition of MIPS clocksource
[linux-2.6-omap-h63xx.git] / arch / mips / oprofile / common.c
index 65eb55400d772f091a0fbbc4f55b18903c0c7955..aa52aa146cea301e83ac6a2e65dd1970be651aba 100644 (file)
@@ -74,7 +74,7 @@ int __init oprofile_arch_init(struct oprofile_operations *ops)
        struct op_mips_model *lmodel = NULL;
        int res;
 
-       switch (current_cpu_data.cputype) {
+       switch (current_cpu_type()) {
        case CPU_5KC:
        case CPU_20KC:
        case CPU_24K:
@@ -83,6 +83,9 @@ int __init oprofile_arch_init(struct oprofile_operations *ops)
        case CPU_74K:
        case CPU_SB1:
        case CPU_SB1A:
+       case CPU_R10000:
+       case CPU_R12000:
+       case CPU_R14000:
                lmodel = &op_model_mipsxx_ops;
                break;