summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorNathan Zadoks <nathan@nathan7.eu>2016-03-02 17:26:27 +0100
committerRich Felker <dalias@aerifal.cx>2016-03-02 21:35:40 -0500
commitdb66ef1f7db7c5b672591a97a97bc789c9efe2f3 (patch)
tree6934edee491e19a09bbcbfff2bf7426d18e7a2d6 /arch
parent98d335735d64ee34a34cb9c08ea2cb51a076d2a1 (diff)
downloadmusl-db66ef1f7db7c5b672591a97a97bc789c9efe2f3.tar.gz
add sched_getcpu vDSO support
This brings the call to an actually usable speed. Quick unscientific benchmark: 14ns : 102ns :: vDSO : syscall
Diffstat (limited to 'arch')
-rw-r--r--arch/x86_64/syscall_arch.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86_64/syscall_arch.h b/arch/x86_64/syscall_arch.h
index a7a7b5a6..54e05ff6 100644
--- a/arch/x86_64/syscall_arch.h
+++ b/arch/x86_64/syscall_arch.h
@@ -64,3 +64,5 @@ static __inline long __syscall6(long n, long a1, long a2, long a3, long a4, long
#define VDSO_USEFUL
#define VDSO_CGT_SYM "__vdso_clock_gettime"
#define VDSO_CGT_VER "LINUX_2.6"
+#define VDSO_GETCPU_SYM "__vdso_getcpu"
+#define VDSO_GETCPU_VER "LINUX_2.6"