aboutsummaryrefslogtreecommitdiff
path: root/arch/powerpc/sysdev/mpic.c
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <[email protected]>2017-07-24 14:28:00 +1000
committerMichael Ellerman <[email protected]>2017-08-18 13:07:16 +1000
commit1a92a80ad386a1a6e3b36d576d52a1a456394b70 (patch)
tree7c23e2a850b9353cf6debd63dcde4c073b370f56 /arch/powerpc/sysdev/mpic.c
parent5a69aec945d27e78abac9fd032533d3aaebf7c1e (diff)
powerpc/mm: Ensure cpumask update is ordered
There is no guarantee that the various isync's involved with the context switch will order the update of the CPU mask with the first TLB entry for the new context being loaded by the HW. Be safe here and add a memory barrier to order any subsequent load/store which may bring entries into the TLB. The corresponding barrier on the other side already exists as pte updates use pte_xchg() which uses __cmpxchg_u64 which has a sync after the atomic operation. Cc: [email protected] Signed-off-by: Benjamin Herrenschmidt <[email protected]> Reviewed-by: Nicholas Piggin <[email protected]> [mpe: Add comments in the code] Signed-off-by: Michael Ellerman <[email protected]>
Diffstat (limited to 'arch/powerpc/sysdev/mpic.c')
0 files changed, 0 insertions, 0 deletions