aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm64/Kconfig
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2013-11-06 12:20:22 -0500
committerCatalin Marinas <catalin.marinas@arm.com>2013-12-19 12:43:06 -0500
commit12a0ef7b0ac38677bd2d85f33df5ca0a57868819 (patch)
tree59b4be2d48b136aac65c7201a975a9463917e020 /arch/arm64/Kconfig
parent7158627686f02319c50c8d9d78f75d4c8d126ff2 (diff)
arm64: use generic strnlen_user and strncpy_from_user functions
This patch implements the word-at-a-time interface for arm64 using the same algorithm as ARM. We use the fls64 macro, which expands to a clz instruction via a compiler builtin. Big-endian configurations make use of the implementation from asm-generic. With this implemented, we can replace our byte-at-a-time strnlen_user and strncpy_from_user functions with the optimised generic versions. Signed-off-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/Kconfig')
-rw-r--r--arch/arm64/Kconfig2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
index 6d4dd22ee4b7..295bf2de7128 100644
--- a/arch/arm64/Kconfig
+++ b/arch/arm64/Kconfig
@@ -17,6 +17,8 @@ config ARM64
17 select GENERIC_IRQ_SHOW 17 select GENERIC_IRQ_SHOW
18 select GENERIC_SCHED_CLOCK 18 select GENERIC_SCHED_CLOCK
19 select GENERIC_SMP_IDLE_THREAD 19 select GENERIC_SMP_IDLE_THREAD
20 select GENERIC_STRNCPY_FROM_USER
21 select GENERIC_STRNLEN_USER
20 select GENERIC_TIME_VSYSCALL 22 select GENERIC_TIME_VSYSCALL
21 select HARDIRQS_SW_RESEND 23 select HARDIRQS_SW_RESEND
22 select HAVE_ARCH_TRACEHOOK 24 select HAVE_ARCH_TRACEHOOK