xref: /openbmc/linux/arch/arm64/include/asm/neon.h (revision feac8c8b)
1 /*
2  * linux/arch/arm64/include/asm/neon.h
3  *
4  * Copyright (C) 2013 Linaro Ltd <ard.biesheuvel@linaro.org>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License version 2 as
8  * published by the Free Software Foundation.
9  */
10 
11 #ifndef __ASM_NEON_H
12 #define __ASM_NEON_H
13 
14 #include <linux/types.h>
15 #include <asm/fpsimd.h>
16 
17 #define cpu_has_neon()		system_supports_fpsimd()
18 
19 void kernel_neon_begin(void);
20 void kernel_neon_end(void);
21 
22 /*
23  * Temporary macro to allow the crypto code to compile. Note that the
24  * semantics of kernel_neon_begin_partial() are now different from the
25  * original as it does not allow being called in an interrupt context.
26  */
27 #define kernel_neon_begin_partial(num_regs)	kernel_neon_begin()
28 
29 #endif /* ! __ASM_NEON_H */
30