Lines Matching refs:affinity
84 #include <kern/affinity.h>
711 * look for first affinity group that is currently not active
837 uint32_t affinity = -1;
845 affinity = tl->th_affinity_tag;
862 (void)workqueue_run_nextreq(p, wq, THREAD_NULL, force_oc, overcommit, priority, affinity);
904 * we were the last active thread on this affinity set
1270 * for this operation, we re-purpose the affinity
1275 int reqcount = uap->affinity;
1559 * and affinity that the thread is associated with
1576 * look for the affinity group with the least number of threads
1648 * check to see if the affinity group this thread is
1678 * affinity group at this priority level and higher,
1689 * 1 affinity group to schedule against, no need
1709 * there's more than 1 thread running in this affinity group
1721 * look for first affinity group that is currently not active
1746 * affinity group in the active state...
1773 * we're overbooked on the affinity group this thread is
1776 * this thread to a new affinity group
1786 * work to do and at least 1 affinity group that
1796 * we've got a candidate (affinity group with no currently
1860 * thread's new disposition w/r to affinity and priority
1874 * this thread's affinity does not match the affinity group
1877 * affinity tag of 0 means no affinity...
2299 uint32_t pri, affinity;
2309 for (affinity = 0; affinity < wq->wq_affinity_max; affinity++)
2310 activecount += wq->wq_thactive_count[pri][affinity];