浏览代码

[MIPS] Oprofile: Support for 34K UP kernels.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

Ralf Baechle 19 年之前
父节点
当前提交
fcfd980c83
共有 2 个文件被更改,包括 7 次插入0 次删除
  1. 1 0
      arch/mips/oprofile/common.c
  2. 6 0
      arch/mips/oprofile/op_model_mipsxx.c

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

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

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

@@ -201,6 +201,12 @@ static int __init mipsxx_init(void)
 		op_model_mipsxx.cpu_type = "mips/25K";
 		break;
 
+#ifndef CONFIG_SMP
+	case CPU_34K:
+		op_model_mipsxx.cpu_type = "mips/34K";
+		break;
+#endif
+
 	case CPU_5KC:
 		op_model_mipsxx.cpu_type = "mips/5K";
 		break;