xref: /linux/arch/x86/include/asm/simd.h (revision d3d929a8b0cd6deb7d70d1d8d805bccee3fbf11f)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 
3 #include <asm/fpu/api.h>
4 
5 /*
6  * may_use_simd - whether it is allowable at this time to issue SIMD
7  *                instructions or access the SIMD register file
8  */
9 static __must_check inline bool may_use_simd(void)
10 {
11 	return irq_fpu_usable();
12 }
13