summaryrefslogtreecommitdiff
path: root/arch/arm64/include/asm/Kbuild
diff options
context:
space:
mode:
authorRobin Murphy <robin.murphy@arm.com>2016-05-31 20:04:40 +0300
committerCatalin Marinas <catalin.marinas@arm.com>2016-06-21 17:09:11 +0300
commit0e455d8e80aa22d7ed42c9f5e4e3a75c558aa543 (patch)
tree6f5e84f4eeb3acc32fd836899e68bb6b41f03731 /arch/arm64/include/asm/Kbuild
parent33688abb2802ff3a230bd2441f765477b94cc89e (diff)
downloadlinux-0e455d8e80aa22d7ed42c9f5e4e3a75c558aa543.tar.xz
arm64: Implement optimised IP checksum helpers
AArch64 is capable of 128-bit memory accesses without alignment restrictions, which makes it both possible and highly practical to slurp up a typical 20-byte IP header in just 2 loads. Implement our own version of ip_fast_checksum() to take advantage of that, resulting in considerably fewer instructions and memory accesses than the generic version. We can also get more optimal code generation for csum_fold() by defining it a slightly different way round from the generic version, so throw that into the mix too. Suggested-by: Luke Starrett <luke.starrett@broadcom.com> Acked-by: Luke Starrett <luke.starrett@broadcom.com> Signed-off-by: Robin Murphy <robin.murphy@arm.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/include/asm/Kbuild')
-rw-r--r--arch/arm64/include/asm/Kbuild1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/arm64/include/asm/Kbuild b/arch/arm64/include/asm/Kbuild
index cff532a6744e..f43d2c44c765 100644
--- a/arch/arm64/include/asm/Kbuild
+++ b/arch/arm64/include/asm/Kbuild
@@ -1,6 +1,5 @@
generic-y += bug.h
generic-y += bugs.h
-generic-y += checksum.h
generic-y += clkdev.h
generic-y += cputime.h
generic-y += current.h