From d8d3e35cd7d78cc9f8d57462ec10ecceaa42b764 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Fri, 9 Dec 2005 12:34:45 +0000 Subject: [PATCH] --- yaml --- r: 17770 b: refs/heads/master c: 9efeae9a5cae7e7bdacff666a1d689f5b2901c64 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/arch/mips/oprofile/op_model_mipsxx.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 04d8b310f91b..c5b8a7b7f1bf 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: ba339c03e2e8ede8ccd37ed6c4e564e3b1545495 +refs/heads/master: 9efeae9a5cae7e7bdacff666a1d689f5b2901c64 diff --git a/trunk/arch/mips/oprofile/op_model_mipsxx.c b/trunk/arch/mips/oprofile/op_model_mipsxx.c index a4a4aa99ab03..d97bbff031e5 100644 --- a/trunk/arch/mips/oprofile/op_model_mipsxx.c +++ b/trunk/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);