浏览代码

[MIPS] Oprofile: Add missing break statements.

This was causing oprofile to fail on R10000, R12000, R14000.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle 18 年之前
父节点
当前提交
148171b2ac
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      arch/mips/oprofile/op_model_mipsxx.c

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

@@ -223,10 +223,12 @@ static inline int n_counters(void)
 	switch (current_cpu_data.cputype) {
 	case CPU_R10000:
 		counters = 2;
+		break;
 
 	case CPU_R12000:
 	case CPU_R14000:
 		counters = 4;
+		break;
 
 	default:
 		counters = __n_counters();