1 /* SPDX-License-Identifier: GPL-2.0-only */
2 #ifndef __ASM_VDSO_PROCESSOR_H
3 #define __ASM_VDSO_PROCESSOR_H
7 #include <asm/barrier.h>
8 #include <asm/insn-def.h>
10 static inline void cpu_relax(void)
14 /* In lieu of a halt instruction, induce a long-latency stall. */
15 __asm__
__volatile__ ("div %0, %0, zero" : "=r" (dummy
));
19 * Reduce instruction retirement.
20 * This assumes the PC changes.
22 __asm__
__volatile__ (RISCV_PAUSE
);
26 #endif /* __ASSEMBLY__ */
28 #endif /* __ASM_VDSO_PROCESSOR_H */