Merge tag 'sched-urgent-2020-12-27' of git://git.kernel.org/pub/scm/linux/kernel...
[linux/fpc-iii.git] / arch / arm / include / asm / vdso / processor.h
blob45efb3ff511c9c64a7540ffe7163bdb07e316fdb
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * Copyright (C) 2020 ARM Ltd.
4 */
5 #ifndef __ASM_VDSO_PROCESSOR_H
6 #define __ASM_VDSO_PROCESSOR_H
8 #ifndef __ASSEMBLY__
10 #if __LINUX_ARM_ARCH__ == 6 || defined(CONFIG_ARM_ERRATA_754327)
11 #define cpu_relax() \
12 do { \
13 smp_mb(); \
14 __asm__ __volatile__("nop; nop; nop; nop; nop; nop; nop; nop; nop; nop;"); \
15 } while (0)
16 #else
17 #define cpu_relax() barrier()
18 #endif
20 #endif /* __ASSEMBLY__ */
22 #endif /* __ASM_VDSO_PROCESSOR_H */