Lines Matching refs:rq
1987 run_queue_t rq,
1990 queue_t queue = rq->queues + rq->highq;
1991 int pri = rq->highq, count = rq->count;
2002 SCHED_STATS_RUNQ_CHANGE(&rq->runq_stats, rq->count);
2003 rq->count--;
2005 rq->urgency--; assert(rq->urgency >= 0);
2009 clrbit(MAXPRI - pri, rq->bitmap);
2010 rq->highq = MAXPRI - ffsbit(rq->bitmap);
2701 run_queue_t rq)
2705 rq->highq = IDLEPRI;
2707 rq->bitmap[i] = 0;
2708 setbit(MAXPRI - IDLEPRI, rq->bitmap);
2709 rq->urgency = rq->count = 0;
2711 queue_init(&rq->queues[i]);
2806 run_queue_t rq,
2810 queue_t queue = rq->queues + rq->highq;
2820 SCHED_STATS_RUNQ_CHANGE(&rq->runq_stats, rq->count);
2821 rq->count--;
2822 if (SCHED(priority_is_urgent)(rq->highq)) {
2823 rq->urgency--; assert(rq->urgency >= 0);
2826 if (rq->highq != IDLEPRI)
2827 clrbit(MAXPRI - rq->highq, rq->bitmap);
2828 rq->highq = MAXPRI - ffsbit(rq->bitmap);
2844 run_queue_t rq,
2848 queue_t queue = rq->queues + thread->sched_pri;
2854 setbit(MAXPRI - thread->sched_pri, rq->bitmap);
2855 if (thread->sched_pri > rq->highq) {
2856 rq->highq = thread->sched_pri;
2867 rq->urgency++;
2868 SCHED_STATS_RUNQ_CHANGE(&rq->runq_stats, rq->count);
2869 rq->count++;
2884 run_queue_t rq,
2889 SCHED_STATS_RUNQ_CHANGE(&rq->runq_stats, rq->count);
2890 rq->count--;
2892 rq->urgency--; assert(rq->urgency >= 0);
2895 if (queue_empty(rq->queues + thread->sched_pri)) {
2898 clrbit(MAXPRI - thread->sched_pri, rq->bitmap);
2899 rq->highq = MAXPRI - ffsbit(rq->bitmap);
3052 run_queue_t rq = runq_for_processor(processor);
3055 result = run_queue_enqueue(rq, thread, options);
3638 run_queue_t rq = runq_for_processor(processor);
3639 queue_t queue = rq->queues + rq->highq;
3640 int pri = rq->highq, count = rq->count;
3655 SCHED_STATS_RUNQ_CHANGE(&rq->runq_stats, rq->count);
3657 rq->count--;
3659 rq->urgency--; assert(rq->urgency >= 0);
3663 clrbit(MAXPRI - pri, rq->bitmap);
3664 rq->highq = MAXPRI - ffsbit(rq->bitmap);
3772 run_queue_t rq,
3778 if (rq != thread->runq)
3784 q = &rq->queues[thread->sched_pri];
3808 run_queue_t rq;
3811 rq = runq_for_processor(processor);
3820 run_queue_remove(rq, thread);
3918 run_queue_t rq = runq_for_processor(processor);
3919 queue_t queue = rq->queues + rq->highq;
3920 int pri = rq->highq, count = rq->count;
3930 SCHED_STATS_RUNQ_CHANGE(&rq->runq_stats, rq->count);
3932 rq->count--;
3934 rq->urgency--; assert(rq->urgency >= 0);
3938 clrbit(MAXPRI - pri, rq->bitmap);
3939 rq->highq = MAXPRI - ffsbit(rq->bitmap);