]> 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)
commitd1b7b6ce080f0de803aa598ad80846d3e69c8ea4
treec2e64b697b8e1196a8b3e15b625e072de1d21636
parent950df30ea73a7e58955d5dd165c6e6aaa655f82a
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