diff options
author | Florian Weimer <fweimer@redhat.com> | 2020-05-15 11:32:30 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2020-05-16 15:47:51 +0200 |
commit | 501bdb5dd61afc714a098cd5ff441bd114584f75 (patch) | |
tree | 70bbd943a166dc4775cd553263bc04b0bd3ff0be /sysdeps/unix/sysv/linux/x86_64 | |
parent | 61d64408a1f42b0340d37ea0c90a9f028ffb1bfd (diff) | |
download | glibc-501bdb5dd61afc714a098cd5ff441bd114584f75.tar.gz glibc-501bdb5dd61afc714a098cd5ff441bd114584f75.tar.xz glibc-501bdb5dd61afc714a098cd5ff441bd114584f75.zip |
Linux: Remove remnants of the getcpu cache
The getcpu cache was removed from the kernel in Linux 2.6.24. glibc support from the sched_getcpu implementation was removed in commit dd26c44403582fdf10d663170f947dfe4b3207a0 ("Consolidate sched_getcpu").
Diffstat (limited to 'sysdeps/unix/sysv/linux/x86_64')
-rw-r--r-- | sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c | 14 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c | 14 |
2 files changed, 0 insertions, 28 deletions
diff --git a/sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c b/sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c deleted file mode 100644 index a7bbe38156..0000000000 --- a/sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c +++ /dev/null @@ -1,14 +0,0 @@ -#include <tls.h> - -#define RESET_VGETCPU_CACHE() \ - do { \ - asm volatile ("movl %0, %%fs:%P1\n\t" \ - "movl %0, %%fs:%P2" \ - : \ - : "ir" (0), "i" (offsetof (struct pthread, \ - header.vgetcpu_cache[0])), \ - "i" (offsetof (struct pthread, \ - header.vgetcpu_cache[1]))); \ - } while (0) - -#include <sysdeps/unix/sysv/linux/pthread_setaffinity.c> diff --git a/sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c b/sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c deleted file mode 100644 index d1101c56f5..0000000000 --- a/sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c +++ /dev/null @@ -1,14 +0,0 @@ -#include <tls.h> - -#define RESET_VGETCPU_CACHE() \ - do { \ - asm volatile ("movl %0, %%fs:%P1\n\t" \ - "movl %0, %%fs:%P2" \ - : \ - : "ir" (0), "i" (offsetof (struct pthread, \ - header.vgetcpu_cache[0])), \ - "i" (offsetof (struct pthread, \ - header.vgetcpu_cache[1]))); \ - } while (0) - -#include "../sched_setaffinity.c" |