Lines Matching refs:this_cpu
4665 int idx, this_cpu, prev_cpu; in wake_affine() local
4671 this_cpu = smp_processor_id(); in wake_affine()
4674 this_load = target_load(this_cpu, idx); in wake_affine()
4685 this_load += effective_load(tg, this_cpu, -weight, -weight); in wake_affine()
4705 prev_eff_load *= capacity_of(this_cpu); in wake_affine()
4709 effective_load(tg, this_cpu, weight, weight); in wake_affine()
4733 int this_cpu, int sd_flag) in find_idlest_group() argument
4753 local_group = cpumask_test_cpu(this_cpu, in find_idlest_group()
4789 find_idlest_cpu(struct sched_group *group, struct task_struct *p, int this_cpu) in find_idlest_cpu() argument
4794 int least_loaded_cpu = this_cpu; in find_idlest_cpu()
4824 if (load < min_load || (load == min_load && i == this_cpu)) { in find_idlest_cpu()
6949 static int load_balance(int this_cpu, struct rq *this_rq, in load_balance() argument
6962 .dst_cpu = this_cpu, in load_balance()
7127 if (!cpumask_test_cpu(this_cpu, in load_balance()
7142 busiest->push_cpu = this_cpu; in load_balance()
7246 int this_cpu = this_rq->cpu; in idle_balance() local
7272 update_blocked_averages(this_cpu); in idle_balance()
7274 for_each_domain(this_cpu, sd) { in idle_balance()
7287 t0 = sched_clock_cpu(this_cpu); in idle_balance()
7289 pulled_task = load_balance(this_cpu, this_rq, in idle_balance()
7293 domain_cost = sched_clock_cpu(this_cpu) - t0; in idle_balance()
7683 int this_cpu = this_rq->cpu; in nohz_idle_balance() local
7691 !test_bit(NOHZ_BALANCE_KICK, nohz_flags(this_cpu))) in nohz_idle_balance()
7695 if (balance_cpu == this_cpu || !idle_cpu(balance_cpu)) in nohz_idle_balance()
7734 clear_bit(NOHZ_BALANCE_KICK, nohz_flags(this_cpu)); in nohz_idle_balance()
7898 int this_cpu = smp_processor_id(); in task_fork_fair() local
7916 __set_task_cpu(p, this_cpu); in task_fork_fair()