OSDN Git Service

powerpc/uaccess: Also perform 64 bits copies in unsafe_copy_to_user() on ppc32
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Wed, 10 Mar 2021 17:57:00 +0000 (17:57 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 26 Mar 2021 12:19:41 +0000 (23:19 +1100)
commitc6adc835c68b713360f918d21372c2f34fc228e2
tree35fdbce9aaec24820278bd399df2c99a0431f93b
parent6ce56e1ac380eaa088d3f4c01446e15e195bd541
powerpc/uaccess: Also perform 64 bits copies in unsafe_copy_to_user() on ppc32

ppc32 has an efficiant 64 bits __put_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/ccc08a16eea682d6fa4acc957ffe34003a8f0844.1615398498.git.christophe.leroy@csgroup.eu
arch/powerpc/include/asm/uaccess.h