summaryrefslogtreecommitdiff
path: root/arch/arm/include/asm/simd.h
blob: d37559762180400b5c9963a0705936eb8326b0a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _ASM_SIMD_H
#define _ASM_SIMD_H

#include <linux/compiler_attributes.h>
#include <linux/preempt.h>
#include <linux/types.h>

static __must_check inline bool may_use_simd(void)
{
	return IS_ENABLED(CONFIG_KERNEL_MODE_NEON) && !in_hardirq();
}

#endif	/* _ASM_SIMD_H */