xref: /openbmc/linux/arch/x86/include/asm/simd.h (revision df6b35f4)
1801201aaSArd Biesheuvel 
2df6b35f4SIngo Molnar #include <asm/fpu/api.h>
3801201aaSArd Biesheuvel 
4801201aaSArd Biesheuvel /*
5801201aaSArd Biesheuvel  * may_use_simd - whether it is allowable at this time to issue SIMD
6801201aaSArd Biesheuvel  *                instructions or access the SIMD register file
7801201aaSArd Biesheuvel  */
8801201aaSArd Biesheuvel static __must_check inline bool may_use_simd(void)
9801201aaSArd Biesheuvel {
10801201aaSArd Biesheuvel 	return irq_fpu_usable();
11801201aaSArd Biesheuvel }
12