diff options
author | Guo Ren <guoren@linux.alibaba.com> | 2021-01-17 18:38:18 +0300 |
---|---|---|
committer | Guo Ren <guoren@linux.alibaba.com> | 2021-02-27 11:35:09 +0300 |
commit | 0d3b051adbb72ed81956447d0d1e54d5943ee6f5 (patch) | |
tree | 433b4210fd30da045a8a7f8709740a8787d85ac0 /arch/csky/kernel/vdso/Makefile | |
parent | 8dcbc611f0fcbcc196dc96e0f833181df0d80242 (diff) | |
download | linux-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/kernel/vdso/Makefile')
-rw-r--r-- | arch/csky/kernel/vdso/Makefile | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/arch/csky/kernel/vdso/Makefile b/arch/csky/kernel/vdso/Makefile index 13ac549c6587..0b6909f10667 100644 --- a/arch/csky/kernel/vdso/Makefile +++ b/arch/csky/kernel/vdso/Makefile @@ -6,12 +6,17 @@ ARCH_REL_TYPE_ABS := R_CKCORE_ADDR32|R_CKCORE_JUMP_SLOT include $(srctree)/lib/vdso/Makefile # Symbols present in the vdso -vdso-syms = rt_sigreturn +vdso-syms += rt_sigreturn +vdso-syms += vgettimeofday # Files to link into the vdso obj-vdso = $(patsubst %, %.o, $(vdso-syms)) note.o -ccflags-y := -fno-stack-protector +ifneq ($(c-gettimeofday-y),) + CFLAGS_vgettimeofday.o += -include $(c-gettimeofday-y) +endif + +ccflags-y := -fno-stack-protector -DBUILD_VDSO32 # Build rules targets := $(obj-vdso) vdso.so vdso.so.dbg vdso.lds vdso-dummy.o |