/
usr
/
src
/
linux-headers-5.15.0-190
/
arch
/
riscv
/
include
/
asm
/
vdso
/
/usr/src/linux-headers-5.15.0-190/arch/riscv/include/asm/vdso
mkdir
upload
Name
Size
Mode
Actions
clocksource.h
169
0644
edit
dl
rm
gettimeofday.h
1995
0644
edit
dl
rm
processor.h
437
0644
edit
dl
rm
vsyscall.h
635
0644
edit
dl
rm
Edit:
/usr/src/linux-headers-5.15.0-190/arch/riscv/include/asm/vdso/processor.h
(437B)
/* SPDX-License-Identifier: GPL-2.0-only */ #ifndef __ASM_VDSO_PROCESSOR_H #define __ASM_VDSO_PROCESSOR_H #ifndef __ASSEMBLY__ #include <asm/barrier.h> static inline void cpu_relax(void) { #ifdef __riscv_muldiv int dummy; /* In lieu of a halt instruction, induce a long-latency stall. */ __asm__ __volatile__ ("div %0, %0, zero" : "=r" (dummy)); #endif barrier(); } #endif /* __ASSEMBLY__ */ #endif /* __ASM_VDSO_PROCESSOR_H */
Save
cmd:
run