summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include
diff options
context:
space:
mode:
authorYork Sun <yorksun@freescale.com>2012-08-17 08:20:26 +0000
committerAndy Fleming <afleming@freescale.com>2012-08-23 12:16:55 -0500
commit709389b654de05fd6035656f5e082ba1757807b3 (patch)
tree1fee7e92d8155b20351a59eb51ef7d36e337a6f0 /arch/powerpc/include
parentffdf8890ae2564e8b5af36b1b384ca7e9bcdd7c2 (diff)
downloadblackbird-obmc-uboot-709389b654de05fd6035656f5e082ba1757807b3.tar.gz
blackbird-obmc-uboot-709389b654de05fd6035656f5e082ba1757807b3.zip
powerpc/mpc8xxx: fix core id for multicore booting
For the cores with multiple threads, we need to figure out which physical core a thread belongs. To match the core ids, update PIR registers and spin tables. Signed-off-by: York Sun <yorksun@freescale.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org> Signed-off-by: Andy Fleming <afleming@freescale.com>
Diffstat (limited to 'arch/powerpc/include')
-rw-r--r--arch/powerpc/include/asm/mp.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/mp.h b/arch/powerpc/include/asm/mp.h
index 3ffa30b978..fe490bac05 100644
--- a/arch/powerpc/include/asm/mp.h
+++ b/arch/powerpc/include/asm/mp.h
@@ -28,4 +28,10 @@ void cpu_mp_lmb_reserve(struct lmb *lmb);
u32 determine_mp_bootpg(void);
int is_core_disabled(int nr);
+#ifdef CONFIG_E6500
+#define thread_to_core(x) (x >> 1)
+#else
+#define thread_to_core(x) (x)
+#endif
+
#endif
OpenPOWER on IntegriCloud