xref: /OK3568_Linux_fs/kernel/arch/arm64/include/asm/vdso/processor.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0-only */
2*4882a593Smuzhiyun /*
3*4882a593Smuzhiyun  * Copyright (C) 2020 ARM Ltd.
4*4882a593Smuzhiyun  */
5*4882a593Smuzhiyun #ifndef __ASM_VDSO_PROCESSOR_H
6*4882a593Smuzhiyun #define __ASM_VDSO_PROCESSOR_H
7*4882a593Smuzhiyun 
8*4882a593Smuzhiyun #ifndef __ASSEMBLY__
9*4882a593Smuzhiyun 
cpu_relax(void)10*4882a593Smuzhiyun static inline void cpu_relax(void)
11*4882a593Smuzhiyun {
12*4882a593Smuzhiyun 	asm volatile("yield" ::: "memory");
13*4882a593Smuzhiyun }
14*4882a593Smuzhiyun 
15*4882a593Smuzhiyun #endif /* __ASSEMBLY__ */
16*4882a593Smuzhiyun 
17*4882a593Smuzhiyun #endif /* __ASM_VDSO_PROCESSOR_H */
18