File tree 1 file changed +7
-7
lines changed 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -19402,6 +19402,7 @@ static bool __thread_priority(int32_t prio) {
19402
19402
19403
19403
#else // posix?
19404
19404
19405
+ #define __USE_GNU
19405
19406
#include <sched.h>
19406
19407
19407
19408
static bool __thread_affinity(const bool * mask) {
@@ -19473,17 +19474,16 @@ static bool __thread_priority(int32_t prio) {
19473
19474
19474
19475
#endif
19475
19476
19476
- #ifdef __aarch64__
19477
-
19477
+ #if defined(__aarch64__) && ( defined(__clang__) || defined(__GNUC__) )
19478
19478
static inline void __cpu_relax(void) {
19479
- __asm__ volatile("yield" ::: "memory");
19479
+ asm volatile("yield" ::: "memory");
19480
19480
}
19481
-
19482
- #else
19483
-
19481
+ #elif defined(__x86_64__)
19484
19482
static inline void __cpu_relax(void) {
19485
- __asm__ volatile("rep; nop" ::: "memory" );
19483
+ _mm_pause( );
19486
19484
}
19485
+ #else
19486
+ static inline void __cpu_relax(void) {;}
19487
19487
#endif
19488
19488
19489
19489
static void __cpumask_next(const bool * global_mask, bool * local_mask, bool strict, int32_t* iter) {
You can’t perform that action at this time.
0 commit comments