summaryrefslogtreecommitdiffstats
path: root/arch/mips/oprofile/op_model_mipsxx.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2006-10-24 00:21:21 +0200
committerRalf Baechle <ralf@linux-mips.org>2006-10-30 22:41:27 +0100
commitea3df4ac7d4adad915e2d0431a9407b10617114c (patch)
treec8a69d6c13aa8da543b1e05b9e7efb8780c4611e /arch/mips/oprofile/op_model_mipsxx.c
parent[MIPS] Au1xx0 code sets incorrect mips_hpt_frequency (diff)
downloadlinux-ea3df4ac7d4adad915e2d0431a9407b10617114c.tar.xz
linux-ea3df4ac7d4adad915e2d0431a9407b10617114c.zip
[MIPS] Oprofile: Fix MIPSxx counter number detection.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/oprofile/op_model_mipsxx.c')
-rw-r--r--arch/mips/oprofile/op_model_mipsxx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/oprofile/op_model_mipsxx.c b/arch/mips/oprofile/op_model_mipsxx.c
index ebce715f076d..1fb240c57bac 100644
--- a/arch/mips/oprofile/op_model_mipsxx.c
+++ b/arch/mips/oprofile/op_model_mipsxx.c
@@ -220,7 +220,7 @@ static inline int n_counters(void)
{
int counters = __n_counters();
-#ifndef CONFIG_SMP
+#ifdef CONFIG_MIPS_MT_SMP
if (current_cpu_data.cputype == CPU_34K)
return counters >> 1;
#endif