~ubuntu-branches/ubuntu/natty/eglibc/natty-security

« back to all changes in this revision

Viewing changes to sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c

  • Committer: Bazaar Package Importer
  • Author(s): Aurelien Jarno
  • Date: 2009-05-05 09:54:14 UTC
  • Revision ID: james.westby@ubuntu.com-20090505095414-c45qsg9ixjheohru
ImportĀ upstreamĀ versionĀ 2.9

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include <tls.h>
 
2
 
 
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)
 
13
 
 
14
#include "../sched_setaffinity.c"