xref: /openbmc/linux/arch/x86/include/asm/simd.h (revision 801201aa25646291aa87ba97250f6614639eb2ea)
1*801201aaSArd Biesheuvel 
2*801201aaSArd Biesheuvel #include <asm/i387.h>
3*801201aaSArd Biesheuvel 
4*801201aaSArd Biesheuvel /*
5*801201aaSArd Biesheuvel  * may_use_simd - whether it is allowable at this time to issue SIMD
6*801201aaSArd Biesheuvel  *                instructions or access the SIMD register file
7*801201aaSArd Biesheuvel  */
8*801201aaSArd Biesheuvel static __must_check inline bool may_use_simd(void)
9*801201aaSArd Biesheuvel {
10*801201aaSArd Biesheuvel 	return irq_fpu_usable();
11*801201aaSArd Biesheuvel }
12