powerpc: purge all the prefetched instructions for the coherent icache flush
authorKevin Hao <haokexin@gmail.com>
Thu, 22 Aug 2013 01:30:35 +0000 (09:30 +0800)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 2 Dec 2013 03:13:47 +0000 (14:13 +1100)
commit0ce636700c5bad54eda0e62903a1803f6d67b31d
treeb3302187e8e314de7c7cef55f1147c755de8e8f6
parentdfee0efe3ec8d4099c69e8234e4e4306619b9ba6
powerpc: purge all the prefetched instructions for the coherent icache flush

As Benjamin Herrenschmidt has indicated, we still need a dummy icbi to
purge all the prefetched instructions from the ifetch buffers for the
snooping icache. We also need a sync before the icbi to order the
actual stores to memory that might have modified instructions with
the icbi.

Signed-off-by: Kevin Hao <haokexin@gmail.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/cache.h
arch/powerpc/kernel/misc_32.S
arch/powerpc/kernel/misc_64.S