• Nick Piggin's avatar
    powerpc: Optimise smp_rmb · 957ab07b
    Nick Piggin authored
    After commit 598056d5 ("[POWERPC] Fix
    rmb to order cacheable vs. noncacheable"), rmb() becomes a sync
    instruction, which is needed to order cacheable vs noncacheable loads.
    However smp_rmb() is #defined to rmb(), and smp_rmb() can be an
    lwsync.
    
    This restores smp_rmb() performance by using lwsync there and updates
    the comments.
    Signed-off-by: default avatarNick Piggin <npiggin@suse.de>
    Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
    957ab07b
system.h 14.5 KB