[PATCH 1/9] mm/maccess: fix unaligned copy_{from, to}_kernel_nofault
Linus Walleij
linus.walleij at linaro.org
Fri Nov 6 03:57:25 EST 2020
On Fri, Oct 30, 2020 at 4:49 PM Arnd Bergmann <arnd at kernel.org> wrote:
> From: Arnd Bergmann <arnd at arndb.de>
>
> On machines such as ARMv5 that trap unaligned accesses, these
> two functions can be slow when each access needs to be emulated,
> or they might not work at all.
>
> Change them so that each loop is only used when both the src
> and dst pointers are naturally aligned.
>
> Reviewed-by: Christoph Hellwig <hch at lst.de>
> Signed-off-by: Arnd Bergmann <arnd at arndb.de>
Reviewed-by: Linus Walleij <linus.walleij at linaro.org>
Yours,
Linus Walleij
More information about the linux-arm-kernel
mailing list