Skip to content

Commit

Permalink
[MIPS] Oprofile: Add missing break statements.
Browse files Browse the repository at this point in the history
This was causing oprofile to fail on R10000, R12000, R14000.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Ralf Baechle committed Mar 4, 2007
1 parent 69f2827 commit 148171b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/mips/oprofile/op_model_mipsxx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 148171b

Please sign in to comment.