* Apply new cpumask to the ithread. */
| 1510 | * Apply new cpumask to the ithread. |
| 1511 | */ |
| 1512 | int |
| 1513 | cpuset_setithread(lwpid_t id, int cpu) |
| 1514 | { |
| 1515 | cpuset_t mask; |
| 1516 | |
| 1517 | CPU_ZERO(&mask); |
| 1518 | if (cpu == NOCPU) |
| 1519 | CPU_COPY(cpuset_root, &mask); |
| 1520 | else |
| 1521 | CPU_SET(cpu, &mask); |
| 1522 | return _cpuset_setthread(id, &mask, NULL); |
| 1523 | } |
| 1524 | |
| 1525 | /* |
| 1526 | * Initialize static domainsets after NUMA information is available. This is |
no test coverage detected