mirror of
				https://sourceware.org/git/glibc.git
				synced 2025-10-30 10:45:40 +03:00 
			
		
		
		
	(__sched_setaffinity_new): If syscall was successful and RESET_VGETCPU_CACHE is defined, use it before returning. * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
		
			
				
	
	
		
			15 lines
		
	
	
		
			411 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			411 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #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"
 |