[lkml]   [2020]   [Sep]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 1/9] mm/maccess: fix unaligned copy_{from,to}_kernel_nofault
On Mon, Sep 7, 2020 at 5:37 PM Arnd Bergmann <> wrote:

> 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.
> Signed-off-by: Arnd Bergmann <>

That's a clever optimization idea, nice!
Reviewed-by: Linus Walleij <>

Linus Walleij

 \ /
  Last update: 2020-09-27 11:26    [W:0.045 / U:5.616 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site