Lines Matching refs:rq
296 run_queue_t rq = global_runq;
304 queue = rq->queues + rq->highq;
305 pri = rq->highq;
306 count = rq->count;
328 SCHED_STATS_RUNQ_CHANGE(&rq->runq_stats, rq->count);
329 rq->count--;
332 clrbit(MAXPRI - pri, rq->bitmap);
333 rq->highq = MAXPRI - ffsbit(rq->bitmap);
396 run_queue_t rq = global_runq;
400 result = run_queue_enqueue(rq, thread, options);
421 run_queue_t rq;
424 rq = global_runq;
433 SCHED_STATS_RUNQ_CHANGE(&rq->runq_stats, rq->count);
434 rq->count--;
436 rq->urgency--; assert(rq->urgency >= 0);
439 if (queue_empty(rq->queues + thread->sched_pri)) {
442 clrbit(MAXPRI - thread->sched_pri, rq->bitmap);
443 rq->highq = MAXPRI - ffsbit(rq->bitmap);