| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | 
|---|---|
| 2 | #ifndef _ASM_SIMD_H | 
| 3 | #define _ASM_SIMD_H | 
| 4 | |
| 5 | #include <asm/fpu/api.h> | 
| 6 | #include <linux/compiler_attributes.h> | 
| 7 | #include <linux/types.h> | 
| 8 | |
| 9 | /* | 
| 10 | * may_use_simd - whether it is allowable at this time to issue SIMD | 
| 11 | * instructions or access the SIMD register file | 
| 12 | */ | 
| 13 | static __must_check inline bool may_use_simd(void) | 
| 14 | { | 
| 15 | return irq_fpu_usable(); | 
| 16 | } | 
| 17 | |
| 18 | #endif /* _ASM_SIMD_H */ | 
| 19 | 
