summaryrefslogtreecommitdiff
path: root/arch/arm64/include/asm/neon.h
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2013-07-09 14:18:12 +0100
committerCatalin Marinas <catalin.marinas@arm.com>2013-08-20 12:12:26 +0100
commit4cfb36136480c029a29dbf63a623506e6ed7282b (patch)
treed812d9d1a8dd903be440257faf1a5e5c19cb70e1 /arch/arm64/include/asm/neon.h
parent178cd9ce377232518ec17ff2ecab2e80fa60784c (diff)
arm64: add support for kernel mode NEON
Add <asm/neon.h> containing kernel_neon_begin/kernel_neon_end function declarations and corresponding definitions in fpsimd.c These are needed to wrap uses of NEON in kernel mode. The names are identical to the ones used in arm/ so code using intrinsics or vectorized by GCC can be shared between arm and arm64. Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/include/asm/neon.h')
-rw-r--r--arch/arm64/include/asm/neon.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/neon.h b/arch/arm64/include/asm/neon.h
new file mode 100644
index 000000000000..b0cc58a97780
--- /dev/null
+++ b/arch/arm64/include/asm/neon.h
@@ -0,0 +1,14 @@
+/*
+ * linux/arch/arm64/include/asm/neon.h
+ *
+ * Copyright (C) 2013 Linaro Ltd <ard.biesheuvel@linaro.org>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#define cpu_has_neon() (1)
+
+void kernel_neon_begin(void);
+void kernel_neon_end(void);