]> 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)
commitcfec0ec425b593bd39b8b00dbde0dfe6c59f4099
tree704a909a224d75f679d4f3919e27edb2fd71da76
parente6119708ab0f2b6347e06f4c4ca4d20f2fcc2e58
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