]> err.no Git - linux-2.6/commitdiff
[MIPS] SB1: Add oprofile support.
authorMark Mason <mason@broadcom.com>
Tue, 17 Jan 2006 20:06:32 +0000 (12:06 -0800)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 7 Feb 2006 13:30:22 +0000 (13:30 +0000)
Signed-off-by: Mark Mason <mason@broadcom.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/oprofile/Makefile
arch/mips/oprofile/common.c
arch/mips/oprofile/op_model_mipsxx.c

index 354261d37d62e5e09bfc136f117e9394ef32a833..0a50aad5bbe47f54fdc578020a9cfc84b08e6b0c 100644 (file)
@@ -12,4 +12,5 @@ oprofile-y                            := $(DRIVER_OBJS) common.o
 
 oprofile-$(CONFIG_CPU_MIPS32)          += op_model_mipsxx.o
 oprofile-$(CONFIG_CPU_MIPS64)          += op_model_mipsxx.o
+oprofile-$(CONFIG_CPU_SB1)             += op_model_mipsxx.o
 oprofile-$(CONFIG_CPU_RM9000)          += op_model_rm9000.o
index 53f9889b30eda3c278cf4664e463a793e36e9948..65de5e3d5a7b3d17f2ab3a678569ca177e5f5870 100644 (file)
@@ -79,6 +79,8 @@ int __init oprofile_arch_init(struct oprofile_operations *ops)
        case CPU_20KC:
        case CPU_24K:
        case CPU_25KF:
+       case CPU_SB1:
+       case CPU_SB1A:
                lmodel = &op_model_mipsxx;
                break;
 
index 1d1eee407faf971a86b8f63b543aae90957d8ddd..dd6d189dccf8286d8a047e528505094ab0bcb8c6 100644 (file)
@@ -205,6 +205,11 @@ static int __init mipsxx_init(void)
                op_model_mipsxx.cpu_type = "mips/5K";
                break;
 
+       case CPU_SB1:
+       case CPU_SB1A:
+               op_model_mipsxx.cpu_type = "mips/sb1";
+               break;
+
        default:
                printk(KERN_ERR "Profiling unsupported for this CPU\n");