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*4882a593Smuzhiyunstatic 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