Lines Matching refs:this_rq
1761 struct rq *this_rq, int this_cpu)
1765 activate_task(this_rq, p, 0);
1766 check_preempt_curr(this_rq, p, 0);
1821 * move_one_task tries to move exactly one task from busiest to this_rq, as
1828 move_one_task(struct rq *this_rq, int this_cpu, struct rq *busiest,
1842 pull_task(busiest, p, this_rq, this_cpu);
1857 balance_tasks(struct rq *this_rq, int this_cpu, struct rq *busiest,
1879 pull_task(busiest, p, this_rq, this_cpu);
1919 load_balance_fair(struct rq *this_rq, int this_cpu, struct rq *busiest,
1946 moved_load = balance_tasks(this_rq, this_cpu, busiest,
1966 load_balance_fair(struct rq *this_rq, int this_cpu, struct rq *busiest,
1971 return balance_tasks(this_rq, this_cpu, busiest,
1979 * this_rq, as part of a balancing operation within domain "sd".
1984 static int move_tasks(struct rq *this_rq, int this_cpu, struct rq *busiest,
1990 int this_best_prio = this_rq->curr->prio;
1993 load_moved = load_balance_fair(this_rq, this_cpu, busiest,
2005 if (idle == CPU_NEWLY_IDLE && this_rq->nr_running)
2008 if (raw_spin_is_contended(&this_rq->lock) ||
2954 static int load_balance(int this_cpu, struct rq *this_rq,
2998 BUG_ON(busiest == this_rq);
3011 double_rq_lock(this_rq, busiest);
3012 ld_moved = move_tasks(this_rq, this_cpu, busiest,
3014 double_rq_unlock(this_rq, busiest);
3124 static void idle_balance(int this_cpu, struct rq *this_rq)
3130 this_rq->idle_stamp = this_rq->clock;
3132 if (this_rq->avg_idle < sysctl_sched_migration_cost)
3138 raw_spin_unlock(&this_rq->lock);
3149 pulled_task = load_balance(this_cpu, this_rq,
3157 this_rq->idle_stamp = 0;
3162 raw_spin_lock(&this_rq->lock);
3164 if (pulled_task || time_after(jiffies, this_rq->next_balance)) {
3169 this_rq->next_balance = next_balance;
3576 struct rq *this_rq = cpu_rq(this_cpu);
3580 if (idle != CPU_IDLE || !this_rq->nohz_balance_kick)
3593 this_rq->nohz_balance_kick = 0;
3597 raw_spin_lock_irq(&this_rq->lock);
3598 update_rq_clock(this_rq);
3599 update_cpu_load(this_rq);
3600 raw_spin_unlock_irq(&this_rq->lock);
3605 if (time_after(this_rq->next_balance, rq->next_balance))
3606 this_rq->next_balance = rq->next_balance;
3608 nohz.next_balance = this_rq->next_balance;
3609 this_rq->nohz_balance_kick = 0;
3668 struct rq *this_rq = cpu_rq(this_cpu);
3669 enum cpu_idle_type idle = this_rq->idle_at_tick ?
3747 struct rq *rq = this_rq();