summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2016-07-17 00:41:43 (GMT)
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-07-17 09:22:40 (GMT)
commita072066753e15c3a82bc32f89c1eef277af0b31e (patch)
tree17f077d88a5444f2b1a2fe0003b32612c5ce2725 /libc
parent4458cc330e6e5b7369151ebe172c00faceb43ade (diff)
x86_64: remove dead code, SHARED is not defined when compiling
Diffstat (limited to 'libc')
-rw-r--r--libc/sysdeps/linux/x86_64/sched_getcpu.S19
1 files changed, 7 insertions, 12 deletions
diff --git a/libc/sysdeps/linux/x86_64/sched_getcpu.S b/libc/sysdeps/linux/x86_64/sched_getcpu.S
index 1e0a344..3964bf1 100644
--- a/libc/sysdeps/linux/x86_64/sched_getcpu.S
+++ b/libc/sysdeps/linux/x86_64/sched_getcpu.S
@@ -35,26 +35,21 @@ ENTRY (sched_getcpu)
movl $VGETCPU_CACHE_OFFSET, %edx
addq %fs:0, %rdx
-#ifdef SHARED
- movq __vdso_getcpu(%rip), %rax
- callq *%rax
-#else
-# ifdef __NR_getcpu
+#ifdef __NR_getcpu
movl $__NR_getcpu, %eax
syscall
-# ifndef __ASSUME_GETCPU_SYSCALL
+# ifndef __ASSUME_GETCPU_SYSCALL
cmpq $-ENOSYS, %rax
jne 1f
-# endif
# endif
-# ifndef __ASSUME_GETCPU_SYSCALL
+#endif
+#ifndef __ASSUME_GETCPU_SYSCALL
movq $VSYSCALL_ADDR_vgetcpu, %rax
callq *%rax
1:
-# else
-# ifndef __NR_getcpu
-# error "cannot happen"
-# endif
+#else
+# ifndef __NR_getcpu
+# error "cannot happen"
# endif
#endif