linux-zen-desktop/arch/arm/include/asm/simd.h

9 lines
185 B
C

/* SPDX-License-Identifier: GPL-2.0 */
#include <linux/hardirq.h>
static __must_check inline bool may_use_simd(void)
{
return IS_ENABLED(CONFIG_KERNEL_MODE_NEON) && !in_hardirq();
}