Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Ard Biesheuvel | 801201a | 2013-09-20 09:55:41 +0200 | [diff] [blame] | 2 | |
Ingo Molnar | df6b35f | 2015-04-24 02:46:00 +0200 | [diff] [blame] | 3 | #include <asm/fpu/api.h> |
Ard Biesheuvel | 801201a | 2013-09-20 09:55:41 +0200 | [diff] [blame] | 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 | } |