projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba339c0
)
MIPS: Oprofile: Print error message if the CPU happen to have no counters.
author
Ralf Baechle
<ralf@ongar.mips.com>
Fri, 9 Dec 2005 12:34:45 +0000
(12:34 +0000)
committer
<ralf@denk.linux-mips.net>
<>
Tue, 10 Jan 2006 13:39:07 +0000
(13:39 +0000)
Signed-off-by: Ralf Baechle <ralf@ongar.mips.com>
arch/mips/oprofile/op_model_mipsxx.c
patch
|
blob
|
history
diff --git
a/arch/mips/oprofile/op_model_mipsxx.c
b/arch/mips/oprofile/op_model_mipsxx.c
index a4a4aa99ab0317edcc9d741a1f81d76ca9cd2e98..d97bbff031e5700f28352928ea65a70d61715363 100644
(file)
--- 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);