summaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c
blob: a7bbe3815693ffe58824b62fa51644ab66dc5005 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#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>