]> git.karo-electronics.de Git - linux-beck.git/commitdiff
powerpc: Perform an isync to synchronize CPUs coming out of secondary_hold
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 5 Apr 2011 04:34:58 +0000 (14:34 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 20 Apr 2011 01:03:25 +0000 (11:03 +1000)
We need to do that to guarantee they see any code change done by
dynamic patching during boot.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/head_64.S

index 0700e1135c91a63eb5fa90dedf376e3c479cb030..6d17c37f22a144dc542a383b5e02cce076e5d700 100644 (file)
@@ -147,6 +147,8 @@ __secondary_hold:
        mtctr   r4
        mr      r3,r24
        li      r4,0
+       /* Make sure that patched code is visible */
+       isync
        bctr
 #else
        BUG_OPCODE