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 int counters; 181 182 counters = n_counters(); 183 - if (counters == 0) 184 return -ENODEV; 185 186 reset_counters(counters); 187
··· 180 int counters; 181 182 counters = n_counters(); 183 + if (counters == 0) { 184 + printk(KERN_ERR "Oprofile: CPU has no performance counters\n"); 185 return -ENODEV; 186 + } 187 188 reset_counters(counters); 189