diff options
author | Huacai Chen <chenhuacai@loongson.cn> | 2022-08-06 10:19:33 +0300 |
---|---|---|
committer | Huacai Chen <chenhuacai@loongson.cn> | 2022-08-12 08:10:11 +0300 |
commit | dce6098b22d58e5b646b1c67174c53f5a6a05605 (patch) | |
tree | 0658f8ef3b5efcf58a386100c02b1930bbd9eea0 /arch/loongarch/vdso/Makefile | |
parent | 57fc7323a8e7c2e7c1d5795ab63cb3ffea3cfdfb (diff) | |
download | linux-dce6098b22d58e5b646b1c67174c53f5a6a05605.tar.xz |
LoongArch: Add vDSO syscall __vdso_getcpu()
We test 20 million times of getcpu(), the real syscall version take 25
seconds, while the vsyscall version take only 2.4 seconds.
Signed-off-by: Rui Wang <wangrui@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'arch/loongarch/vdso/Makefile')
-rw-r--r-- | arch/loongarch/vdso/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/loongarch/vdso/Makefile b/arch/loongarch/vdso/Makefile index 92e404032257..d89e2ac75f7b 100644 --- a/arch/loongarch/vdso/Makefile +++ b/arch/loongarch/vdso/Makefile @@ -6,7 +6,7 @@ ARCH_REL_TYPE_ABS := R_LARCH_32|R_LARCH_64|R_LARCH_MARK_LA|R_LARCH_JUMP_SLOT include $(srctree)/lib/vdso/Makefile -obj-vdso-y := elf.o vgettimeofday.o sigreturn.o +obj-vdso-y := elf.o vgetcpu.o vgettimeofday.o sigreturn.o # Common compiler flags between ABIs. ccflags-vdso := \ |