From: Ralf Baechle Date: Tue, 24 Apr 2007 20:42:20 +0000 (+0100) Subject: [MIPS] Fix oprofile logic to physical counter remapping X-Git-Tag: v2.6.21~7 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=6f4c5bdef2943d9ec074be32c437ca897016aaad;p=linux-2.6-omap-h63xx.git [MIPS] Fix oprofile logic to physical counter remapping This did cause oprofile to fail on non-multithreaded systems with more than 2 processors such as the BCM1480. Reported by Manish Lachwani (mlachwani@mvista.com). Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/oprofile/op_model_mipsxx.c b/arch/mips/oprofile/op_model_mipsxx.c index 69a8bcfe72b..4f94fa261aa 100644 --- a/arch/mips/oprofile/op_model_mipsxx.c +++ b/arch/mips/oprofile/op_model_mipsxx.c @@ -35,7 +35,7 @@ #define vpe_id() smp_processor_id() #else #define WHAT 0 -#define vpe_id() smp_processor_id() +#define vpe_id() 0 #endif #define __define_perf_accessors(r, n, np) \