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/include/asm/vdso.h | |
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/include/asm/vdso.h')
-rw-r--r-- | arch/loongarch/include/asm/vdso.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/loongarch/include/asm/vdso.h b/arch/loongarch/include/asm/vdso.h index 8f8a0f9a4953..d3ba35eb23e7 100644 --- a/arch/loongarch/include/asm/vdso.h +++ b/arch/loongarch/include/asm/vdso.h @@ -7,6 +7,7 @@ #ifndef __ASM_VDSO_H #define __ASM_VDSO_H +#include <linux/mm.h> #include <linux/mm_types.h> #include <vdso/datapage.h> |