csky: Add VDSO with GENERIC_GETTIMEOFDAY, GENERIC_TIME_VSYSCALL, HAVE_GENERIC_VDSO
authorGuo Ren <guoren@linux.alibaba.com>
Sun, 17 Jan 2021 15:38:18 +0000 (23:38 +0800)
committerGuo Ren <guoren@linux.alibaba.com>
Sat, 27 Feb 2021 08:35:09 +0000 (16:35 +0800)
commit0d3b051adbb72ed81956447d0d1e54d5943ee6f5
tree433b4210fd30da045a8a7f8709740a8787d85ac0
parent8dcbc611f0fcbcc196dc96e0f833181df0d80242
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>
14 files changed:
arch/csky/Kconfig
arch/csky/abiv1/inc/abi/regdef.h
arch/csky/abiv2/inc/abi/regdef.h
arch/csky/include/asm/clocksource.h [new file with mode: 0644]
arch/csky/include/asm/vdso.h
arch/csky/include/asm/vdso/clocksource.h [new file with mode: 0644]
arch/csky/include/asm/vdso/gettimeofday.h [new file with mode: 0644]
arch/csky/include/asm/vdso/processor.h [new file with mode: 0644]
arch/csky/include/asm/vdso/vsyscall.h [new file with mode: 0644]
arch/csky/kernel/perf_event.c
arch/csky/kernel/vdso.c
arch/csky/kernel/vdso/Makefile
arch/csky/kernel/vdso/vdso.lds.S
arch/csky/kernel/vdso/vgettimeofday.c [new file with mode: 0644]