![]() |
|
|||
0001 /* SPDX-License-Identifier: GPL-2.0 */ 0002 0003 #include <linux/hardirq.h> 0004 0005 /* 0006 * may_use_simd - whether it is allowable at this time to issue SIMD 0007 * instructions or access the SIMD register file 0008 * 0009 * As architectures typically don't preserve the SIMD register file when 0010 * taking an interrupt, !in_interrupt() should be a reasonable default. 0011 */ 0012 static __must_check inline bool may_use_simd(void) 0013 { 0014 return !in_interrupt(); 0015 }
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |