Searched refs:cpuset (Results 1 – 1 of 1) sorted by relevance
68 cpu_set_t cpuset; in LockToCPU() local70 CPU_ZERO(&cpuset); in LockToCPU()71 if (sched_getaffinity(0, sizeof(cpuset), &cpuset) != 0) { in LockToCPU()79 if (CPU_ISSET(i, &cpuset)) { in LockToCPU()83 } else if (!CPU_ISSET(cpu_to_lock, &cpuset)) { in LockToCPU()93 CPU_ZERO(&cpuset); in LockToCPU()94 CPU_SET(cpu_to_lock, &cpuset); in LockToCPU()95 if (sched_setaffinity(0, sizeof(cpuset), &cpuset) != 0) { in LockToCPU()