OSDN Git Service

arm64/lib: copy_page: use consistent prefetch stride
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Wed, 12 Jul 2017 14:44:14 +0000 (15:44 +0100)
committerWill Deacon <will.deacon@arm.com>
Tue, 25 Jul 2017 09:04:42 +0000 (10:04 +0100)
commit288be97cc74e31b7871c75eb11a8dd768dcb535d
treec2e64b697b8e1196a8b3e15b625e072de1d21636
parentece4b206be9934b3bb32adb1261545ead831c993
arm64/lib: copy_page: use consistent prefetch stride

The optional prefetch instructions in the copy_page() routine are
inconsistent: at the start of the function, two cachelines are
prefetched beyond the one being loaded in the first iteration, but
in the loop, the prefetch is one more line ahead. This appears to
be unintentional, so let's fix it.

While at it, fix the comment style and white space.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/lib/copy_page.S