Lines Matching defs:affinity
93 int ts_cpu; /* CPU that we have affinity for. */
94 int ts_rltick; /* Real last tick, for affinity. */
283 #define SCHED_AFFINITY(ts, t) ((ts)->ts_rltick > ticks - ((t) * affinity))
290 static int __read_mostly affinity;
1117 * like one was available. This could be due to affinity
1312 SCHED_STAT_DEFINE(pickcpu_idle_affinity, "Picked idle cpu based on affinity");
1313 SCHED_STAT_DEFINE(pickcpu_affinity, "Picked cpu based on affinity");
1359 * If the thread can run on the last cpu and the affinity has not
1386 * Skip SMT, identical groups and caches with expired affinity.
1387 * Interrupt threads affinity is explicit and never expires.
1585 affinity = SCHED_AFFINITY_DEFAULT;
2111 * If we fail to acquire one due to affinity restrictions,
2200 ts->ts_rltick = ticks - affinity * MAX_CACHE_LEVELS;
2862 * Enforce affinity settings for a thread. Called after adjustments to
3325 SYSCTL_INT(_kern_sched, OID_AUTO, affinity, CTLFLAG_RW, &affinity, 0,
3326 "Number of hz ticks to keep thread affinity for");