xref: /linux/arch/x86/include/asm/simd.h (revision 498495dba268b20e8eadd7fe93c140c68b6cc9d2)
1*b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */
2801201aaSArd Biesheuvel 
3df6b35f4SIngo Molnar #include <asm/fpu/api.h>
4801201aaSArd Biesheuvel 
5801201aaSArd Biesheuvel /*
6801201aaSArd Biesheuvel  * may_use_simd - whether it is allowable at this time to issue SIMD
7801201aaSArd Biesheuvel  *                instructions or access the SIMD register file
8801201aaSArd Biesheuvel  */
may_use_simd(void)9801201aaSArd Biesheuvel static __must_check inline bool may_use_simd(void)
10801201aaSArd Biesheuvel {
11801201aaSArd Biesheuvel 	return irq_fpu_usable();
12801201aaSArd Biesheuvel }
13