Lines Matching refs:cset
2242 processor_set_t nset, cset = pset;
2265 if (!queue_empty(&cset->idle_queue))
2266 return ((processor_t)queue_first(&cset->idle_queue));
2272 processor = (processor_t)queue_first(&cset->active_queue);
2273 while (!queue_end(&cset->active_queue, (queue_entry_t)processor)) {
2287 if (cset->low_pri != PROCESSOR_NULL && cset->low_pri->state != PROCESSOR_INACTIVE &&
2288 cset->low_pri->state != PROCESSOR_SHUTDOWN && cset->low_pri->state != PROCESSOR_OFF_LINE &&
2290 (thread->sched_pri > BASEPRI_DEFAULT && cset->low_pri->current_pri < thread->sched_pri))) {
2291 processor = cset->low_pri;
2294 if (cset->low_count != PROCESSOR_NULL && cset->low_count->state != PROCESSOR_INACTIVE &&
2295 cset->low_count->state != PROCESSOR_SHUTDOWN && cset->low_count->state != PROCESSOR_OFF_LINE &&
2297 ( thread->sched_pri <= BASEPRI_DEFAULT && cset->low_count->runq.count < processor->runq.count))) {
2298 processor = cset->low_count;
2305 processor = (processor_t)dequeue_head(&cset->active_queue);
2307 enqueue_tail(&cset->active_queue, (queue_entry_t)processor);
2314 nset = next_pset(cset);
2317 pset_unlock(cset);
2319 cset = nset;
2320 pset_lock(cset);
2340 if (cset != processor->processor_set) {
2341 pset_unlock(cset);
2343 cset = processor->processor_set;
2344 pset_lock(cset);
2354 if (cset != processor->processor_set) {
2355 pset_unlock(cset);
2357 cset = processor->processor_set;
2358 pset_lock(cset);
2806 processor_set_t nset, cset = pset;
2811 processor = (processor_t)queue_first(&cset->active_queue);
2812 while (!queue_end(&cset->active_queue, (queue_entry_t)processor)) {
2816 remqueue(&cset->active_queue, (queue_entry_t)processor);
2817 enqueue_tail(&cset->active_queue, (queue_entry_t)processor);
2819 pset_unlock(cset);
2828 nset = next_pset(cset);
2831 pset_unlock(cset);
2833 cset = nset;
2834 pset_lock(cset);
2838 pset_unlock(cset);