]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita918179e08b9130c84f14ef35984c81220a1fc5f
treec2e64b697b8e1196a8b3e15b625e072de1d21636
parent465b8bb8c2c19e9e183aa09317abd0d64f2fe502
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