OSDN Git Service

arm64: neon: Temporarily add a kernel_mode_begin_partial() definition
authorCatalin Marinas <catalin.marinas@arm.com>
Fri, 4 Aug 2017 14:10:12 +0000 (15:10 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 4 Aug 2017 14:10:12 +0000 (15:10 +0100)
The crypto code currently relies on kernel_mode_begin_partial() being
available. Until the corresponding crypto patches are merged, define
this macro temporarily, though with different semantics as it cannot be
called in interrupt context.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/neon.h

index fb9d137..f922eaf 100644 (file)
 void kernel_neon_begin(void);
 void kernel_neon_end(void);
 
+/*
+ * Temporary macro to allow the crypto code to compile. Note that the
+ * semantics of kernel_neon_begin_partial() are now different from the
+ * original as it does not allow being called in an interrupt context.
+ */
+#define kernel_neon_begin_partial(num_regs)    kernel_neon_begin()
+
 #endif /* ! __ASM_NEON_H */