| 132 | } |
| 133 | |
| 134 | static int pin_cpu(int cpu) { |
| 135 | cpu_set_t mask; |
| 136 | CPU_ZERO(&mask); |
| 137 | CPU_SET(cpu, &mask); |
| 138 | return pthread_setaffinity_np(pthread_self(), sizeof(mask), &mask); |
| 139 | } |
| 140 | |
| 141 | static bool is_hybrid_cpu(void) { |
| 142 | unsigned eax, ebx, ecx, edx; |
no outgoing calls
no test coverage detected