Skip to content

Commit

Permalink
powerpc: Perform an isync to synchronize CPUs coming out of secondary…
Browse files Browse the repository at this point in the history
…_hold

We need to do that to guarantee they see any code change done by
dynamic patching during boot.

Signed-off-by: Benjamin Herrenschmidt <[email protected]>
  • Loading branch information
ozbenh committed Apr 20, 2011
1 parent 948cf67 commit dd79773
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/powerpc/kernel/head_64.S
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dd79773

Please sign in to comment.