- remqueue((queue_entry_t)thread);
- SCHED_STATS_RUNQ_CHANGE(&rq->runq_stats, rq->count);
- rq->count--;
- if (SCHED(priority_is_urgent)(thread->sched_pri)) {
- rq->urgency--; assert(rq->urgency >= 0);
- }
-
- if (queue_empty(rq->queues + thread->sched_pri)) {
- /* update run queue status */
- bitmap_clear(rq->bitmap, thread->sched_pri);
- rq->highq = bitmap_first(rq->bitmap, NRQS);
- }
-
- thread->runq = PROCESSOR_NULL;