diff mbox

[RFC,v3,4/4] arm64: neon: Add backwards compatibility kernel_neon_begin_partial()

Message ID 1495736721-20985-5-git-send-email-Dave.Martin@arm.com (mailing list archive)
State New, archived
Headers show

Commit Message

Dave Martin May 25, 2017, 6:25 p.m. UTC
kernel_neon_begin_partial() is no longer available, but the
implementation of kernel_neon_begin() should be sufficient to
satisfy kernel_neon_begin_partial() callers.

Because of the changed semantics of may_use_simd() and
kernel_neon_begin() such code really needs to be ported.

In the meantime, this patch restores buildability of kernel-mode
NEON client code.

Signed-off-by: Dave Martin <Dave.Martin@arm.com>
---
 arch/arm64/include/asm/neon.h | 3 +++
 1 file changed, 3 insertions(+)
diff mbox

Patch

diff --git a/arch/arm64/include/asm/neon.h b/arch/arm64/include/asm/neon.h
index fb9d137..885f7a6 100644
--- a/arch/arm64/include/asm/neon.h
+++ b/arch/arm64/include/asm/neon.h
@@ -19,4 +19,7 @@ 
 void kernel_neon_begin(void);
 void kernel_neon_end(void);
 
+/* FIXME: Backwards compatibility only, should go away: */
+#define kernel_neon_begin_partial(num_regs) kernel_neon_begin()
+
 #endif /* ! __ASM_NEON_H */