Skip to content

Commit

Permalink
MIPS: Oprofile: Print error message if the CPU happen to have no coun…
Browse files Browse the repository at this point in the history
…ters.

    
Signed-off-by: Ralf Baechle <ralf@ongar.mips.com>
  • Loading branch information
Ralf Baechle authored and Unknown committed Jan 10, 2006
1 parent ba339c0 commit 9efeae9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion arch/mips/oprofile/op_model_mipsxx.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,10 @@ static int __init mipsxx_init(void)
int counters;

counters = n_counters();
if (counters == 0)
if (counters == 0) {
printk(KERN_ERR "Oprofile: CPU has no performance counters\n");
return -ENODEV;
}

reset_counters(counters);

Expand Down

0 comments on commit 9efeae9

Please sign in to comment.