Lines Matching defs:steal
1019 * This tdq has idled. Try to steal a thread from another cpu and switch
1026 struct tdq *steal;
1046 * We found no CPU to steal from in this group. Escalate to
1069 steal = TDQ_CPU(cpu);
1078 if (TDQ_LOAD(steal) < steal_thresh ||
1079 TDQ_TRANSFERABLE(steal) == 0)
1092 if (TDQ_TRYLOCK_FLAGS(steal, MTX_DUPOK) == 0) {
1104 if (TDQ_LOAD(steal) < steal_thresh ||
1105 TDQ_TRANSFERABLE(steal) == 0 ||
1107 tdq_unlock_pair(tdq, steal);
1113 if (tdq_move(steal, tdq) != -1)
1124 tdq_unlock_pair(tdq, steal);
1126 TDQ_UNLOCK(steal);
1258 * Attempt to steal a thread in priority order from a thread queue.
2020 * This tdq is about to idle. Try to steal a thread from another CPU before
2027 struct tdq *steal;
2043 * steal one here.
2051 * We found no CPU to steal from in this group. Escalate to
2080 steal = TDQ_CPU(cpu);
2087 if (TDQ_LOAD(steal) < steal_thresh ||
2088 TDQ_TRANSFERABLE(steal) == 0)
2099 if (TDQ_TRYLOCK_FLAGS(steal, MTX_DUPOK) == 0)
2105 if (TDQ_LOAD(steal) < steal_thresh ||
2106 TDQ_TRANSFERABLE(steal) == 0) {
2107 TDQ_UNLOCK(steal);
2115 if (tdq_move(steal, tdq) == -1) {
2116 TDQ_UNLOCK(steal);
2119 TDQ_UNLOCK(steal);
3333 "Attempts to steal work from other cores before idling");
3335 "Minimum load on remote CPU before we'll steal");