Commit d26de6c9 authored by Ard Biesheuvel's avatar Ard Biesheuvel Committed by Will Deacon
Browse files

arm64: drop unused kernel_neon_begin_partial() macro



When kernel mode NEON was first introduced to the arm64 kernel,
every call to kernel_neon_begin()/_end() stacked resp. unstacked
the entire NEON register file, making it worthwile to reduce the
number of used NEON registers to a bare minimum, and only stack
those. kernel_neon_begin_partial() was introduced for this purpose,
but after the refactoring for SVE and other changes, it no longer
exists and was simply #define'd to kernel_neon_begin() directly.

In the mean time, all users have been updated, so let's remove
the fallback macro.

Reviewed-by: default avatarDave Martin <Dave.Martin@arm.com>
Signed-off-by: default avatarArd Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
parent 140aada4
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -19,11 +19,4 @@
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 */