summaryrefslogtreecommitdiff
path: root/arch/tile/Kconfig
diff options
context:
space:
mode:
authorChris Metcalf <cmetcalf@ezchip.com>2015-04-30 15:12:42 -0400
committerChris Metcalf <cmetcalf@ezchip.com>2015-04-30 15:23:37 -0400
commit5bf6c07a1843813d0065feaaecba622d49148d7e (patch)
tree18118d48ffe123ce6f6d3eaa67dba135adafbc1a /arch/tile/Kconfig
parent627ae54854edfbf29d5997015c190de22eef497f (diff)
tile: add <asm/word-at-a-time.h> and enable support functions
This change enables the generic strncpy_from_user() and strnlen_user() using word-at-a-time.h. The tile implementation is trivial since both tilepro and tilegx have SIMD operations that do byte-wise comparisons against immediate zero for each byte, and return an 0x01 byte in each position where there is a 0x00 byte. Signed-off-by: Chris Metcalf <cmetcalf@ezchip.com>
Diffstat (limited to 'arch/tile/Kconfig')
-rw-r--r--arch/tile/Kconfig2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/tile/Kconfig b/arch/tile/Kconfig
index a07e31b50d3f..8fac40f56ec7 100644
--- a/arch/tile/Kconfig
+++ b/arch/tile/Kconfig
@@ -28,6 +28,8 @@ config TILE
select HAVE_DEBUG_STACKOVERFLOW
select ARCH_WANT_FRAME_POINTERS
select HAVE_CONTEXT_TRACKING
+ select GENERIC_STRNCPY_FROM_USER
+ select GENERIC_STRNLEN_USER
# FIXME: investigate whether we need/want these options.
# select HAVE_IOREMAP_PROT