• Michael Ellerman's avatar
    powerpc/mm: Add pte_xchg() helper · 3910a7f4
    Michael Ellerman authored
    We have five locations in 64-bit hash MMU code that do a cmpxchg() of a
    PTE. Currently doing it inline OK, but in a future patch we will be
    converting the PTEs to __be64 in some configs. In that case we will need
    casts at every cmpxchg() site in order to keep sparse happy.
    
    So move the logic into a helper, this is a reasonably nice cleanup on
    its own.
    Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
    3910a7f4
kvm_book3s_64.h 11 KB