From: Ralf Baechle Date: Mon, 23 Oct 2006 22:21:21 +0000 (+0100) Subject: [MIPS] Oprofile: Fix MIPSxx counter number detection. X-Git-Tag: firefly_0821_release~31522^2~20^2~304^2~13 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ea3df4ac7d4adad915e2d0431a9407b10617114c;p=firefly-linux-kernel-4.4.55.git [MIPS] Oprofile: Fix MIPSxx counter number detection. Signed-off-by: Ralf Baechle --- 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