diff options
author | Michael Ellerman <mpe@ellerman.id.au> | 2016-04-29 15:25:27 +0200 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2016-05-01 10:32:16 +0200 |
commit | 3910a7f485e1222de2176ef5bf3a1d8de3152920 (patch) | |
tree | 66de016468eb80717dbe0fc4a3d9b0081031b98c /arch/arm64 | |
parent | powerpc/mm: Drop PTE_ATOMIC_UPDATES from pmd_hugepage_update() (diff) | |
download | linux-3910a7f485e1222de2176ef5bf3a1d8de3152920.tar.xz linux-3910a7f485e1222de2176ef5bf3a1d8de3152920.zip |
powerpc/mm: Add pte_xchg() helper
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: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/arm64')
0 files changed, 0 insertions, 0 deletions