summaryrefslogtreecommitdiffstats
path: root/arch/csky/include/asm/vdso/clocksource.h
diff options
context:
space:
mode:
authorGuo Ren <guoren@linux.alibaba.com>2021-01-17 16:38:18 +0100
committerGuo Ren <guoren@linux.alibaba.com>2021-02-27 09:35:09 +0100
commit0d3b051adbb72ed81956447d0d1e54d5943ee6f5 (patch)
tree433b4210fd30da045a8a7f8709740a8787d85ac0 /arch/csky/include/asm/vdso/clocksource.h
parentcsky: kprobe: Fixup code in simulate without 'long' (diff)
downloadlinux-0d3b051adbb72ed81956447d0d1e54d5943ee6f5.tar.xz
linux-0d3b051adbb72ed81956447d0d1e54d5943ee6f5.zip
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/clocksource.h')
-rw-r--r--arch/csky/include/asm/vdso/clocksource.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/csky/include/asm/vdso/clocksource.h b/arch/csky/include/asm/vdso/clocksource.h
new file mode 100644
index 000000000000..dfca7b4724b7
--- /dev/null
+++ b/arch/csky/include/asm/vdso/clocksource.h
@@ -0,0 +1,9 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+
+#ifndef __ASM_VDSO_CSKY_CLOCKSOURCE_H
+#define __ASM_VDSO_CSKY_CLOCKSOURCE_H
+
+#define VDSO_ARCH_CLOCKMODES \
+ VDSO_CLOCKMODE_ARCHTIMER
+
+#endif /* __ASM_VDSO_CSKY_CLOCKSOURCE_H */