summaryrefslogtreecommitdiffstats
path: root/arch/openrisc/include
diff options
context:
space:
mode:
authorOlof Kindgren <olof.kindgren@gmail.com>2015-02-06 13:41:51 +0100
committerStafford Horne <shorne@gmail.com>2017-02-24 20:14:35 +0100
commitd857a1e253498feb231173218df26f5562c70f09 (patch)
tree4d7c67c6d2c648d52a83f68e5ebaa3882c791073 /arch/openrisc/include
parentopenrisc: Initial support for the idle state (diff)
downloadlinux-d857a1e253498feb231173218df26f5562c70f09.tar.xz
linux-d857a1e253498feb231173218df26f5562c70f09.zip
openrisc: Add optimized memset
This adds a hand-optimized assembler version of memset and sets __HAVE_ARCH_MEMSET to use this version instead of the generic C routine Signed-off-by: Olof Kindgren <olof.kindgren@gmail.com> Signed-off-by: Stafford Horne <shorne@gmail.com>
Diffstat (limited to 'arch/openrisc/include')
-rw-r--r--arch/openrisc/include/asm/string.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/openrisc/include/asm/string.h b/arch/openrisc/include/asm/string.h
new file mode 100644
index 000000000000..33470d4d6948
--- /dev/null
+++ b/arch/openrisc/include/asm/string.h
@@ -0,0 +1,7 @@
+#ifndef __ASM_OPENRISC_STRING_H
+#define __ASM_OPENRISC_STRING_H
+
+#define __HAVE_ARCH_MEMSET
+extern void *memset(void *s, int c, __kernel_size_t n);
+
+#endif /* __ASM_OPENRISC_STRING_H */