diff options
author | Arnd Bergmann <arnd@arndb.de> | 2021-08-11 09:30:18 +0200 |
---|---|---|
committer | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2021-08-20 12:39:25 +0200 |
commit | 2423de2e6f4d8676b6f6e43dee437461023ca6a1 (patch) | |
tree | 06f5aa0dc1bb84599a5ed11a505c901a1ca3ad39 /arch | |
parent | ARM: 9105/1: atags_to_fdt: don't warn about stack size (diff) | |
download | linux-2423de2e6f4d8676b6f6e43dee437461023ca6a1.tar.xz linux-2423de2e6f4d8676b6f6e43dee437461023ca6a1.zip |
ARM: 9115/1: mm/maccess: fix unaligned copy_{from,to}_kernel_nofault
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@lst.de>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions