summaryrefslogtreecommitdiff
path: root/arch/csky/include/asm/vdso/processor.h
diff options
context:
space:
mode:
authorGuo Ren <guoren@linux.alibaba.com>2021-01-17 18:38:18 +0300
committerGuo Ren <guoren@linux.alibaba.com>2021-02-27 11:35:09 +0300
commit0d3b051adbb72ed81956447d0d1e54d5943ee6f5 (patch)
tree433b4210fd30da045a8a7f8709740a8787d85ac0 /arch/csky/include/asm/vdso/processor.h
parent8dcbc611f0fcbcc196dc96e0f833181df0d80242 (diff)
downloadlinux-0d3b051adbb72ed81956447d0d1e54d5943ee6f5.tar.xz
csky: Add VDSO with GENERIC_GETTIMEOFDAY, GENERIC_TIME_VSYSCALL, HAVE_GENERIC_VDSO
It could help to reduce the latency of the time-related functions in user space. We have referenced arm's and riscv's implementation for the patch. Signed-off-by: Guo Ren <guoren@linux.alibaba.com> Cc: Vincent Chen <vincent.chen@sifive.com> Cc: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/csky/include/asm/vdso/processor.h')
-rw-r--r--arch/csky/include/asm/vdso/processor.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/csky/include/asm/vdso/processor.h b/arch/csky/include/asm/vdso/processor.h
new file mode 100644
index 000000000000..39a6b561d0cc
--- /dev/null
+++ b/arch/csky/include/asm/vdso/processor.h
@@ -0,0 +1,12 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#ifndef __ASM_VDSO_CSKY_PROCESSOR_H
+#define __ASM_VDSO_CSKY_PROCESSOR_H
+
+#ifndef __ASSEMBLY__
+
+#define cpu_relax() barrier()
+
+#endif /* __ASSEMBLY__ */
+
+#endif /* __ASM_VDSO_CSKY_PROCESSOR_H */