aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/unix/sysv')
-rw-r--r--sysdeps/unix/sysv/linux/pthread_setaffinity.c5
-rw-r--r--sysdeps/unix/sysv/linux/sched_setaffinity.c5
-rw-r--r--sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c14
-rw-r--r--sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c14
4 files changed, 0 insertions, 38 deletions
diff --git a/sysdeps/unix/sysv/linux/pthread_setaffinity.c b/sysdeps/unix/sysv/linux/pthread_setaffinity.c
index 264d677..b0bd90c 100644
--- a/sysdeps/unix/sysv/linux/pthread_setaffinity.c
+++ b/sysdeps/unix/sysv/linux/pthread_setaffinity.c
@@ -33,11 +33,6 @@ __pthread_setaffinity_new (pthread_t th, size_t cpusetsize,
res = INTERNAL_SYSCALL_CALL (sched_setaffinity, pd->tid, cpusetsize,
cpuset);
-#ifdef RESET_VGETCPU_CACHE
- if (!INTERNAL_SYSCALL_ERROR_P (res))
- RESET_VGETCPU_CACHE ();
-#endif
-
return (INTERNAL_SYSCALL_ERROR_P (res)
? INTERNAL_SYSCALL_ERRNO (res)
: 0);
diff --git a/sysdeps/unix/sysv/linux/sched_setaffinity.c b/sysdeps/unix/sysv/linux/sched_setaffinity.c
index fc2c692..978291f 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)
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 a7bbe38..0000000
--- 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 d1101c5..0000000
--- 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"