xref: /linux/arch/arm/include/asm/simd.h (revision 8a922b7728a93d837954315c98b84f6b78de0c4f)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 
3 #include <linux/hardirq.h>
4 
5 static __must_check inline bool may_use_simd(void)
6 {
7 	return IS_ENABLED(CONFIG_KERNEL_MODE_NEON) && !in_hardirq();
8 }
9