powerpc/mpc85xx: Change spin table to cached memory
authorYork Sun <yorksun@freescale.com>
Sat, 29 Sep 2012 23:44:35 +0000 (16:44 -0700)
committerKumar Gala <galak@kernel.crashing.org>
Sun, 25 Nov 2012 13:00:31 +0000 (07:00 -0600)
commitbc15236fbed1e017b465e38a9d2092393778a2f7
treea367f8260c54d925f01c78d2f7f9d83292d4f84a
parenta393d8977acd834520357f951bb28ef46ee7db0a
powerpc/mpc85xx: Change spin table to cached memory

ePAPR v1.1 requires the spin table to be in cached memory. So we need
to change the call argument of ioremap to enable cache and coherence.
We also flush the cache after writing to spin table to keep it compatible
with previous cache-inhibit spin table. Flushing before and after
accessing spin table is recommended by ePAPR.

Signed-off-by: York Sun <yorksun@freescale.com>
Acked-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/platforms/85xx/smp.c