summaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/sched_setaffinity.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2020-05-15 11:32:30 +0200
committerFlorian Weimer <fweimer@redhat.com>2020-05-16 15:47:51 +0200
commit501bdb5dd61afc714a098cd5ff441bd114584f75 (patch)
tree70bbd943a166dc4775cd553263bc04b0bd3ff0be /sysdeps/unix/sysv/linux/sched_setaffinity.c
parent61d64408a1f42b0340d37ea0c90a9f028ffb1bfd (diff)
downloadglibc-501bdb5dd61afc714a098cd5ff441bd114584f75.tar.gz
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/sched_setaffinity.c')
-rw-r--r--sysdeps/unix/sysv/linux/sched_setaffinity.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/sysdeps/unix/sysv/linux/sched_setaffinity.c b/sysdeps/unix/sysv/linux/sched_setaffinity.c
index fc2c692783..978291fc3e 100644
--- a/sysdeps/unix/sysv/linux/sched_setaffinity.c
+++ b/sysdeps/unix/sysv/linux/sched_setaffinity.c
@@ -32,11 +32,6 @@ __sched_setaffinity_new (pid_t pid, size_t cpusetsize, const cpu_set_t *cpuset)
{
int result = INLINE_SYSCALL (sched_setaffinity, 3, pid, cpusetsize, cpuset);
-#ifdef RESET_VGETCPU_CACHE
- if (result != -1)
- RESET_VGETCPU_CACHE ();
-#endif
-
return result;
}
libc_hidden_def (__sched_setaffinity_new)