提交 9efeae9a 编写于 作者: R Ralf Baechle 提交者:

MIPS: Oprofile: Print error message if the CPU happen to have no counters.

Signed-off-by: NRalf Baechle <ralf@ongar.mips.com>
上级 ba339c03
...@@ -180,8 +180,10 @@ static int __init mipsxx_init(void) ...@@ -180,8 +180,10 @@ static int __init mipsxx_init(void)
int counters; int counters;
counters = n_counters(); counters = n_counters();
if (counters == 0) if (counters == 0) {
printk(KERN_ERR "Oprofile: CPU has no performance counters\n");
return -ENODEV; return -ENODEV;
}
reset_counters(counters); reset_counters(counters);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册