2.9
[glibc/nacl-glibc.git] / sysdeps / unix / sysv / linux / x86_64 / sched_setaffinity.c
blobd1101c56f5246297cd14a25f5f3f08dcbd5ab016
1 #include <tls.h>
3 #define RESET_VGETCPU_CACHE() \
4 do { \
5 asm volatile ("movl %0, %%fs:%P1\n\t" \
6 "movl %0, %%fs:%P2" \
7 : \
8 : "ir" (0), "i" (offsetof (struct pthread, \
9 header.vgetcpu_cache[0])), \
10 "i" (offsetof (struct pthread, \
11 header.vgetcpu_cache[1]))); \
12 } while (0)
14 #include "../sched_setaffinity.c"