aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/oprofile/op_model_mipsxx.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/oprofile/op_model_mipsxx.c')
-rw-r--r--arch/mips/oprofile/op_model_mipsxx.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/mips/oprofile/op_model_mipsxx.c b/arch/mips/oprofile/op_model_mipsxx.c
index a4a4aa99ab03..d97bbff031e5 100644
--- a/arch/mips/oprofile/op_model_mipsxx.c
+++ b/arch/mips/oprofile/op_model_mipsxx.c
@@ -180,8 +180,10 @@ static int __init mipsxx_init(void)
180 int counters; 180 int counters;
181 181
182 counters = n_counters(); 182 counters = n_counters();
183 if (counters == 0) 183 if (counters == 0) {
184 printk(KERN_ERR "Oprofile: CPU has no performance counters\n");
184 return -ENODEV; 185 return -ENODEV;
186 }
185 187
186 reset_counters(counters); 188 reset_counters(counters);
187 189