diff options
author | Nathan Zadoks <nathan@nathan7.eu> | 2016-03-02 17:26:27 +0100 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2016-03-02 21:35:40 -0500 |
commit | db66ef1f7db7c5b672591a97a97bc789c9efe2f3 (patch) | |
tree | 6934edee491e19a09bbcbfff2bf7426d18e7a2d6 /arch | |
parent | 98d335735d64ee34a34cb9c08ea2cb51a076d2a1 (diff) | |
download | musl-db66ef1f7db7c5b672591a97a97bc789c9efe2f3.tar.gz musl-db66ef1f7db7c5b672591a97a97bc789c9efe2f3.tar.bz2 musl-db66ef1f7db7c5b672591a97a97bc789c9efe2f3.tar.xz musl-db66ef1f7db7c5b672591a97a97bc789c9efe2f3.zip |
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.h | 2 |
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" |