summaryrefslogtreecommitdiffstats
path: root/arch/loongarch/vdso/vdso.lds.S
diff options
context:
space:
mode:
authorHuacai Chen <chenhuacai@loongson.cn>2022-08-06 09:19:33 +0200
committerHuacai Chen <chenhuacai@loongson.cn>2022-08-12 07:10:11 +0200
commitdce6098b22d58e5b646b1c67174c53f5a6a05605 (patch)
tree0658f8ef3b5efcf58a386100c02b1930bbd9eea0 /arch/loongarch/vdso/vdso.lds.S
parentLoongArch: Add PCI controller support (diff)
downloadlinux-dce6098b22d58e5b646b1c67174c53f5a6a05605.tar.xz
linux-dce6098b22d58e5b646b1c67174c53f5a6a05605.zip
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/vdso.lds.S')
-rw-r--r--arch/loongarch/vdso/vdso.lds.S1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/loongarch/vdso/vdso.lds.S b/arch/loongarch/vdso/vdso.lds.S
index 955f02de4a2d..56ad855896de 100644
--- a/arch/loongarch/vdso/vdso.lds.S
+++ b/arch/loongarch/vdso/vdso.lds.S
@@ -58,6 +58,7 @@ VERSION
{
LINUX_5.10 {
global:
+ __vdso_getcpu;
__vdso_clock_getres;
__vdso_clock_gettime;
__vdso_gettimeofday;