Skip to content
Snippets Groups Projects
Commit 9efeae9a authored by Ralf Baechle's avatar Ralf Baechle Committed by
Browse files

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

parent ba339c03
Branches
Tags
No related merge requests found
...@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment