Commit 7ba8df47 authored by Herbert Xu's avatar Herbert Xu
Browse files

asm-generic: Make simd.h more resilient



Add missing header inclusions and protect against double inclusion.

Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 9b27a1b2
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _ASM_GENERIC_SIMD_H
#define _ASM_GENERIC_SIMD_H

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

/*
 * may_use_simd - whether it is allowable at this time to issue SIMD
@@ -13,3 +17,5 @@ static __must_check inline bool may_use_simd(void)
{
	return !in_interrupt();
}

#endif	/* _ASM_GENERIC_SIMD_H */