Revert "Do not use pthread_setaffinity_np on s390x"
This reverts commit de82439215dd2770ef9a3a2cf5798bdadb788533.
This commit is contained in:
parent
ee25ac49f3
commit
15560cce5f
@ -482,10 +482,7 @@ start:
|
||||
}
|
||||
|
||||
pthread_detach(th);
|
||||
#if defined(__s390__) || defined(__s390x__) || defined(__zarch__) || defined(__SYSC_ZARCH__)
|
||||
# define S390X
|
||||
#endif
|
||||
#if defined(HAVE_PTHREAD_SETAFFINITY_NP) && defined(HAVE_SCHED_GETCPU) && !defined(S390X)
|
||||
#if defined(HAVE_PTHREAD_SETAFFINITY_NP) && defined(HAVE_SCHED_GETCPU)
|
||||
cpu_set_t tmp_cpu_set;
|
||||
CPU_ZERO(&tmp_cpu_set);
|
||||
CPU_SET(sched_getcpu(), &tmp_cpu_set);
|
||||
@ -704,7 +701,7 @@ start:
|
||||
}
|
||||
|
||||
pthread_detach(th);
|
||||
#if defined(HAVE_PTHREAD_SETAFFINITY_NP) && defined(HAVE_SCHED_GETCPU) && !defined(S390X)
|
||||
#if defined(HAVE_PTHREAD_SETAFFINITY_NP) && defined(HAVE_SCHED_GETCPU)
|
||||
cpu_set_t tmp_cpu_set;
|
||||
CPU_ZERO(&tmp_cpu_set);
|
||||
CPU_SET(sched_getcpu(), &tmp_cpu_set);
|
||||
|
Loading…
x
Reference in New Issue
Block a user