]> git.baikalelectronics.ru Git - kernel.git/commit
LoongArch: Add vDSO syscall __vdso_getcpu()
authorHuacai Chen <chenhuacai@loongson.cn>
Sat, 6 Aug 2022 07:19:33 +0000 (15:19 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Fri, 12 Aug 2022 05:10:11 +0000 (13:10 +0800)
commitf608614b956f1ffb6570cfedd5ab2dd606ff13df
tree0658f8ef3b5efcf58a386100c02b1930bbd9eea0
parente9c66b580f884577fde8fc537448d7c2d335395e
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>
arch/loongarch/include/asm/vdso.h
arch/loongarch/include/asm/vdso/vdso.h
arch/loongarch/kernel/vdso.c
arch/loongarch/vdso/Makefile
arch/loongarch/vdso/vdso.lds.S
arch/loongarch/vdso/vgetcpu.c [new file with mode: 0644]