MIPS: Oprofile: Print error message if the CPU happen to have no counters. Signed-off-by: Ralf Baechle <ralf@ongar.mips.com>

authored by

Ralf Baechle and committed by
9efeae9a ba339c03

+3 -1
+3 -1
arch/mips/oprofile/op_model_mipsxx.c
··· 180 180 int counters; 181 181 182 182 counters = n_counters(); 183 - if (counters == 0) 183 + if (counters == 0) { 184 + printk(KERN_ERR "Oprofile: CPU has no performance counters\n"); 184 185 return -ENODEV; 186 + } 185 187 186 188 reset_counters(counters); 187 189