mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-11-27 03:58:44 -06:00
MIPS: Oprofile: Print error message if the CPU happen to have no counters.
Signed-off-by: Ralf Baechle <ralf@ongar.mips.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user