提交 ea3df4ac 编写于 作者: R Ralf Baechle

[MIPS] Oprofile: Fix MIPSxx counter number detection.

Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
上级 53c1b192
...@@ -220,7 +220,7 @@ static inline int n_counters(void) ...@@ -220,7 +220,7 @@ static inline int n_counters(void)
{ {
int counters = __n_counters(); int counters = __n_counters();
#ifndef CONFIG_SMP #ifdef CONFIG_MIPS_MT_SMP
if (current_cpu_data.cputype == CPU_34K) if (current_cpu_data.cputype == CPU_34K)
return counters >> 1; return counters >> 1;
#endif #endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册