1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /* Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. */
3 
4 #ifndef _ASM_ARM_NOSPEC_H
5 #define _ASM_ARM_NOSPEC_H
6 
7 #if defined(CONFIG_ARM_32)
8 # include <asm/arm32/nospec.h>
9 #elif defined(CONFIG_ARM_64)
10 # include <asm/arm64/nospec.h>
11 #else
12 # error "unknown ARM variant"
13 #endif
14 
evaluate_nospec(bool condition)15 static inline bool evaluate_nospec(bool condition)
16 {
17     return condition;
18 }
19 
block_speculation(void)20 static inline void block_speculation(void)
21 {
22 }
23 
24 #endif /* _ASM_ARM_NOSPEC_H */
25 
26 /*
27  * Local variables:
28  * mode: C
29  * c-file-style: "BSD"
30  * c-basic-offset: 4
31  * indent-tabs-mode: nil
32  * End:
33  */
34