| 147 | } |
| 148 | |
| 149 | static int pin_cpu(int cpu) { |
| 150 | cpu_set_t mask; |
| 151 | CPU_ZERO(&mask); |
| 152 | CPU_SET(cpu, &mask); |
| 153 | return pthread_setaffinity_np(pthread_self(), sizeof(mask), &mask); |
| 154 | } |
| 155 | |
| 156 | static bool is_hybrid_cpu(void) { |
| 157 | unsigned eax, ebx, ecx, edx; |
no outgoing calls
no test coverage detected