[MIPS] SB1: Add oprofile support.

Signed-off-by: Mark Mason <mason@broadcom.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
Mark Mason 2006-01-17 12:06:32 -08:00 committed by Ralf Baechle
parent 4c91cc57bc
commit c03bc12121
3 changed files with 8 additions and 0 deletions

View 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

View 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;

View 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");