]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[MIPS] Fix oprofile logic to physical counter remapping
authorRalf Baechle <ralf@linux-mips.org>
Tue, 24 Apr 2007 20:42:20 +0000 (21:42 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 24 Apr 2007 21:10:18 +0000 (22:10 +0100)
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 <ralf@linux-mips.org>
arch/mips/oprofile/op_model_mipsxx.c

index 69a8bcfe72b2bc37a7fd8d0360fd1d70e1ee22fa..4f94fa261aae37a1fbe64e2000dd9b76a5bf2bec 100644 (file)
@@ -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)                              \