]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/book3s64: Avoid multiple endian conversion in pte helpers
authorChristophe Leroy <christophe.leroy@c-s.fr>
Tue, 9 Oct 2018 13:52:20 +0000 (13:52 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 14 Oct 2018 07:04:09 +0000 (18:04 +1100)
commit6f3ac4ef4b724b5f4b1bc861b374b41098b347d2
tree704a909a224d75f679d4f3919e27edb2fd71da76
parent28f512daf72ff5d0ddc6ce7b4454180dcf84fc93
powerpc/book3s64: Avoid multiple endian conversion in pte helpers

In the same spirit as already done in pte query helpers,
this patch changes pte setting helpers to perform endian
conversions on the constants rather than on the pte value.

In the meantime, it changes pte_access_permitted() to use
pte helpers for the same reason.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/book3s/64/pgtable.h