Lines Matching defs:this_cpu

7394 	int this_cpu = smp_processor_id();
7447 if (cpu_of(rq) != this_cpu) {
7468 __cfsb_csd_unthrottle(cpu_rq(this_cpu));
8574 wake_affine_idle(int this_cpu, int prev_cpu, int sync)
8577 * If this_cpu is idle, it implies the wakeup is from interrupt
8588 if (available_idle_cpu(this_cpu) && cpus_share_cache(this_cpu, prev_cpu))
8589 return available_idle_cpu(prev_cpu) ? prev_cpu : this_cpu;
8592 struct rq *rq = cpu_rq(this_cpu);
8595 return this_cpu;
8606 int this_cpu, int prev_cpu, int sync)
8611 this_eff_load = cpu_load(cpu_rq(this_cpu));
8617 return this_cpu;
8633 prev_eff_load *= capacity_of(this_cpu);
8644 return this_eff_load < prev_eff_load ? this_cpu : nr_cpumask_bits;
8648 int this_cpu, int prev_cpu, int sync)
8653 target = wake_affine_idle(this_cpu, prev_cpu, sync);
8656 target = wake_affine_weight(sd, p, this_cpu, prev_cpu, sync);
8659 if (target != this_cpu)
8668 sched_balance_find_dst_group(struct sched_domain *sd, struct task_struct *p, int this_cpu);
8674 sched_balance_find_dst_group_cpu(struct sched_group *group, struct task_struct *p, int this_cpu)
8679 int least_loaded_cpu = this_cpu;
9749 * from sd_asym_cpucapacity spanning over this_cpu and prev_cpu.
11111 * can_migrate_task - may task p from runqueue rq be migrated to this_cpu?
12691 sched_balance_find_dst_group(struct sched_domain *sd, struct task_struct *p, int this_cpu)
12711 if (!sched_group_cookie_match(cpu_rq(this_cpu), p, group))
12714 local_group = cpumask_test_cpu(this_cpu,
12811 if (cpu_to_node(this_cpu) == p->numa_preferred_nid)
13723 * Check this_cpu to ensure it is balanced within domain. Attempt to move
13726 static int sched_balance_rq(int this_cpu, struct rq *this_rq,
13738 .dst_cpu = this_cpu,
13930 * moved to this_cpu:
13932 if (!cpumask_test_cpu(this_cpu, busiest->curr->cpus_ptr))
13935 /* Record that we found at least one task that could run on this_cpu */
13955 busiest->push_cpu = this_cpu;
14666 int this_cpu = this_rq->cpu;
14694 * Start with the next CPU after this_cpu so we will end with this_cpu and let a
14697 for_each_cpu_wrap(balance_cpu, nohz.idle_cpus_mask, this_cpu+1) {
14706 if (!idle_cpu(this_cpu) && need_resched()) {
14810 int this_cpu = this_rq->cpu;
14825 atomic_or(NOHZ_NEWILB_KICK, nohz_flags(this_cpu));
14840 * sched_balance_newidle is called by schedule() if this_cpu is about to become
14852 int this_cpu = this_rq->cpu;
14877 if (!cpu_active(this_cpu))
14904 t0 = sched_clock_cpu(this_cpu);
14910 for_each_domain(this_cpu, sd) {
14936 pulled_task = sched_balance_rq(this_cpu, this_rq,
14940 t1 = sched_clock_cpu(this_cpu);