瀏覽代碼

[MIPS] SB1: Add oprofile support.

Signed-off-by: Mark Mason <mason@broadcom.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

Mark Mason 19 年之前
父節點
當前提交
c03bc12121
共有 3 個文件被更改,包括 8 次插入0 次删除
  1. 1 0
      arch/mips/oprofile/Makefile
  2. 2 0
      arch/mips/oprofile/common.c
  3. 5 0
      arch/mips/oprofile/op_model_mipsxx.c

+ 1 - 0
arch/mips/oprofile/Makefile

@@ -12,4 +12,5 @@ oprofile-y				:= $(DRIVER_OBJS) common.o
 
 
 oprofile-$(CONFIG_CPU_MIPS32)		+= op_model_mipsxx.o
 oprofile-$(CONFIG_CPU_MIPS32)		+= op_model_mipsxx.o
 oprofile-$(CONFIG_CPU_MIPS64)		+= 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
 oprofile-$(CONFIG_CPU_RM9000)		+= op_model_rm9000.o

+ 2 - 0
arch/mips/oprofile/common.c

@@ -79,6 +79,8 @@ int __init oprofile_arch_init(struct oprofile_operations *ops)
 	case CPU_20KC:
 	case CPU_20KC:
 	case CPU_24K:
 	case CPU_24K:
 	case CPU_25KF:
 	case CPU_25KF:
+	case CPU_SB1:
+	case CPU_SB1A:
 		lmodel = &op_model_mipsxx;
 		lmodel = &op_model_mipsxx;
 		break;
 		break;
 
 

+ 5 - 0
arch/mips/oprofile/op_model_mipsxx.c

@@ -205,6 +205,11 @@ static int __init mipsxx_init(void)
 		op_model_mipsxx.cpu_type = "mips/5K";
 		op_model_mipsxx.cpu_type = "mips/5K";
 		break;
 		break;
 
 
+	case CPU_SB1:
+	case CPU_SB1A:
+		op_model_mipsxx.cpu_type = "mips/sb1";
+		break;
+
 	default:
 	default:
 		printk(KERN_ERR "Profiling unsupported for this CPU\n");
 		printk(KERN_ERR "Profiling unsupported for this CPU\n");