Revert "tty: hvc: Fix data abort due to race in hvc_open"
[linux/fpc-iii.git] / arch / x86 / include / asm / vdso / processor.h
blob57b1a7034c640add013166f1b455b8b68c9ef4e0
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 /* REP NOP (PAUSE) is a good thing to insert into busy-wait loops. */
11 static __always_inline void rep_nop(void)
13 asm volatile("rep; nop" ::: "memory");
16 static __always_inline void cpu_relax(void)
18 rep_nop();
21 #endif /* __ASSEMBLY__ */
23 #endif /* __ASM_VDSO_PROCESSOR_H */