aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Baechle <ralf@ongar.mips.com>2005-12-09 12:34:45 +0000
committer <ralf@denk.linux-mips.net>2006-01-10 13:39:07 +0000
commit9efeae9a5cae7e7bdacff666a1d689f5b2901c64 (patch)
treeda7836d8ed54db4911aa6211a6b4408082bb0450
parentba339c03e2e8ede8ccd37ed6c4e564e3b1545495 (diff)
downloadlinux-9efeae9a5cae7e7bdacff666a1d689f5b2901c64.tar.gz
MIPS: Oprofile: Print error message if the CPU happen to have no counters.
Signed-off-by: Ralf Baechle <ralf@ongar.mips.com>
-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 a4a4aa99ab0317..d97bbff031e570 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)
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);