• Nick Piggin's avatar
    x86: lock bitops · 418ccbe3
    Nick Piggin authored
    I missed an obvious one!
    
    x86 CPUs are defined not to reorder stores past earlier loads, so there is
    no hardware memory barrier required to implement a release-consistent store
    (all stores are, by definition).
    
    So ditch the generic lock bitops, and implement optimised versions for x86,
    which removes the mfence from __clear_bit_unlock (which is already a useful
    primitive for SLUB).
    Signed-off-by: default avatarNick Piggin <npiggin@suse.de>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
    418ccbe3
bitops_64.h 11.3 KB