]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/uaccess: Also perform 64 bits copies in unsafe_copy_from_user() on ppc32
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Fri, 19 Mar 2021 11:06:51 +0000 (11:06 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 3 Apr 2021 10:22:18 +0000 (21:22 +1100)
commit9f01330c48c14a2ba4dd53b0c2f405d26c8276e8
treebc35d0fb0fbd327de71f24247429da77af53966c
parentf94d836d02df24382262fd508c029a10aae17cff
powerpc/uaccess: Also perform 64 bits copies in unsafe_copy_from_user() on ppc32

Similarly to commit 5cf773fc8f37 ("powerpc/uaccess: Also perform
64 bits copies in unsafe_copy_to_user() on ppc32")

ppc32 has an efficiant 64 bits unsafe_get_user(), so also use it in
order to unroll loops more.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/308e65d9237a14e8c0e3b22919fcf0b5e5592608.1616151715.git.christophe.leroy@csgroup.eu
arch/powerpc/include/asm/uaccess.h