• Home
  • Raw
  • Download

Lines Matching refs:nr_running

719 static u64 __sched_period(unsigned long nr_running)  in __sched_period()  argument
721 if (unlikely(nr_running > sched_nr_latency)) in __sched_period()
722 return nr_running * sysctl_sched_min_granularity; in __sched_period()
737 unsigned int nr_running = cfs_rq->nr_running; in sched_slice() local
743 nr_running = rq_of(cfs_rq)->cfs.h_nr_running; in sched_slice()
745 slice = __sched_period(nr_running + !se->on_rq); in sched_slice()
1697 unsigned int nr_running; member
1744 if ((ns->nr_running > ns->weight) && in numa_classify()
1749 if ((ns->nr_running < ns->weight) || in numa_classify()
1804 ns->nr_running += rq->cfs.h_nr_running; in update_numa_stats()
1807 if (find_idle && !rq->nr_running && idle_cpu(cpu)) { in update_numa_stats()
2124 src_running = env->src_stats.nr_running - 1; in task_numa_find_cpu()
2125 dst_running = env->dst_stats.nr_running + 1; in task_numa_find_cpu()
3226 cfs_rq->nr_running++; in account_entity_enqueue()
3241 cfs_rq->nr_running--; in account_entity_dequeue()
4607 return !cfs_rq->nr_running; in cfs_rq_is_decayed()
4825 if (cfs_rq->nr_running == 1) { in enqueue_entity()
4936 if (cfs_rq->nr_running == 0) in dequeue_entity()
5150 if (cfs_rq->nr_running > 1) in entity_tick()
5528 if (rq->curr == rq->idle && rq->cfs.nr_running) in unthrottle_cfs_rq()
5713 if (!cfs_rq->runtime_enabled || cfs_rq->nr_running) in return_cfs_rq_runtime()
6059 if (cfs_rq_of(&curr->se)->nr_running < sched_nr_latency) in hrtick_update()
6102 return unlikely(rq->nr_running == rq->cfs.idle_h_nr_running && in sched_idle_rq()
6103 rq->nr_running); in sched_idle_rq()
6113 return cfs_rq->nr_running && in sched_idle_cfs_rq()
6114 cfs_rq->nr_running == cfs_rq->idle_nr_running; in sched_idle_cfs_rq()
6458 if (sync && cpu_rq(this_cpu)->nr_running == 1) in wake_affine_idle()
6991 this_rq()->nr_running <= 1 && in select_idle_sibling()
7324 if (sync && cpu_rq(cpu)->nr_running == 1 && in find_energy_efficient_cpu()
7634 if (rq->nr_running) in balance_fair()
7726 int scale = cfs_rq->nr_running >= sched_nr_latency; in check_preempt_wakeup()
7838 if (!cfs_rq->nr_running) in pick_task_fair()
7912 if (!cfs_rq->nr_running) in pick_next_task_fair()
8045 if (unlikely(rq->nr_running == 1)) in yield_task_fair()
8308 if (sched_feat(CACHE_HOT_BUDDY) && env->dst_rq->nr_running && in task_hot()
8357 if (env->src_rq->nr_running > env->src_rq->nr_preferred_running) in migrate_degrades_locality()
8561 if (env->src_rq->nr_running <= 1) { in detach_tasks()
8574 if (env->idle != CPU_NOT_IDLE && env->src_rq->nr_running <= 1) in detach_tasks()
8827 if (cfs_rq->nr_running == 0) in __update_blocked_fair()
9360 int i, nr_running, local_group; in update_sg_lb_stats() local
9375 nr_running = rq->nr_running; in update_sg_lb_stats()
9376 sgs->sum_nr_running += nr_running; in update_sg_lb_stats()
9378 if (nr_running > 1) in update_sg_lb_stats()
9391 if (!nr_running && idle_cpu(i)) { in update_sg_lb_stats()
9567 if (rq->nr_running > rq->nr_numa_running) in fbq_classify_rq()
9569 if (rq->nr_running > rq->nr_preferred_running) in fbq_classify_rq()
9644 int i, nr_running; in update_sg_wakeup_stats() local
9662 nr_running = rq->nr_running - local; in update_sg_wakeup_stats()
9663 sgs->sum_nr_running += nr_running; in update_sg_wakeup_stats()
9668 if (!nr_running && idle_cpu_without(i, p)) in update_sg_wakeup_stats()
10414 unsigned int nr_running; in find_busiest_queue() local
10442 nr_running = rq->cfs.h_nr_running; in find_busiest_queue()
10443 if (!nr_running) in find_busiest_queue()
10456 nr_running == 1) in find_busiest_queue()
10462 nr_running == 1) in find_busiest_queue()
10473 if (nr_running == 1 && load > env->imbalance && in find_busiest_queue()
10505 if (nr_running <= 1) in find_busiest_queue()
10515 if (busiest_nr < nr_running) { in find_busiest_queue()
10516 busiest_nr = nr_running; in find_busiest_queue()
10625 if (env->dst_rq->nr_running > 0 || env->dst_rq->ttwu_pending) in should_we_balance()
10701 if (busiest->nr_running > 1) { in load_balance()
10708 env.loop_max = min(sysctl_sched_nr_migrate, busiest->nr_running); in load_balance()
10741 if (env.loop < busiest->nr_running) in load_balance()
10984 if (busiest_rq->nr_running <= 1) in active_load_balance_cpu_stop()
11279 if (rq->nr_running >= 2) { in nohz_balancer_kick()
11766 if (pulled_task || this_rq->nr_running > 0 || in newidle_balance()
11786 if (this_rq->nr_running != this_rq->cfs.h_nr_running) in newidle_balance()
11895 if (rq->core->core_forceidle_count && rq->cfs.nr_running == 1 && in task_tick_core()
12051 if (rq->cfs.nr_running == 1) in prio_changed_fair()