]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mm: Use pte_raw() in pte_same()/pmd_same()
authorMichael Ellerman <mpe@ellerman.id.au>
Fri, 29 Apr 2016 13:25:29 +0000 (23:25 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 1 May 2016 08:32:19 +0000 (18:32 +1000)
commit78965571a3cc49a9b97c0b1282b5e6b8dded41f4
tree61ed790bc3dbbb5ac39c6f95aace931b5712caf3
parent9b9a2f91915a5fad3089297e3b5aabb22adac548
powerpc/mm: Use pte_raw() in pte_same()/pmd_same()

We can avoid doing endian conversions by using pte_raw() in pxx_same().
The swap of the constant (_PAGE_HPTEFLAGS) should be done at compile
time by the compiler.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/book3s/64/hash-64k.h
arch/powerpc/include/asm/book3s/64/hash.h