MIPS: smp-cps: flush cache after patching mips_cps_core_entry
authorPaul Burton <paul.burton@imgtec.com>
Mon, 14 Apr 2014 11:21:49 +0000 (12:21 +0100)
committerPaul Burton <paul.burton@imgtec.com>
Wed, 28 May 2014 15:20:29 +0000 (16:20 +0100)
commit0f4d3d1155d9a5e71e74658ac50b61141e370cf3
tree71f5551d006d11d323ecf434f4c5b1bb624d6ea1
parent68c1232f51350b007cb1f05260e9e784770ec513
MIPS: smp-cps: flush cache after patching mips_cps_core_entry

The start of mips_cps_core_entry is patched in order to provide the code
with the address of the CM register region at a point where it will be
running non-coherent with the rest of the system. However the cache
wasn't being flushed after that patching which could in principle lead
to secondary cores using an invalid CM base address.

The patching is moved to cps_prepare_cpus since local_flush_icache_range
has not been initialised at the point cps_smp_setup is called.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
arch/mips/kernel/smp-cps.c