Commit 9efeae9a authored by Ralf Baechle's avatar Ralf Baechle Committed by

MIPS: Oprofile: Print error message if the CPU happen to have no counters.

Signed-off-by: default avatarRalf Baechle <ralf@ongar.mips.com>
parent ba339c03
...@@ -180,8 +180,10 @@ static int __init mipsxx_init(void) ...@@ -180,8 +180,10 @@ static int __init mipsxx_init(void)
int counters; int counters;
counters = n_counters(); counters = n_counters();
if (counters == 0) if (counters == 0) {
printk(KERN_ERR "Oprofile: CPU has no performance counters\n");
return -ENODEV; return -ENODEV;
}
reset_counters(counters); reset_counters(counters);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment