• Home
  • Raw
  • Download

Lines Matching refs:idle

502 	return tg->idle > 0;  in tg_is_idle()
507 return cfs_rq->idle > 0; in cfs_rq_is_idle()
5252 cfs_b->idle = 0; in __assign_cfs_rq_runtime()
5528 if (rq->curr == rq->idle && rq->cfs.nr_running) in unthrottle_cfs_rq()
5597 if (cfs_b->idle && !throttled) in do_sched_cfs_period_timer()
5602 cfs_b->idle = 1; in do_sched_cfs_period_timer()
5627 cfs_b->idle = 0; in do_sched_cfs_period_timer()
5826 int idle = 0; in sched_cfs_period_timer() local
5835 idle = do_sched_cfs_period_timer(cfs_b, overrun, flags); in sched_cfs_period_timer()
5868 if (idle) in sched_cfs_period_timer()
5872 return idle ? HRTIMER_NORESTART : HRTIMER_RESTART; in sched_cfs_period_timer()
6561 struct cpuidle_state *idle = idle_get_state(rq); in find_idlest_group_cpu() local
6562 if (idle && idle->exit_latency < min_exit_latency) { in find_idlest_group_cpu()
6568 min_exit_latency = idle->exit_latency; in find_idlest_group_cpu()
6571 } else if ((!idle || idle->exit_latency == min_exit_latency) && in find_idlest_group_cpu()
6715 bool idle = true; in select_idle_core() local
6720 idle = false; in select_idle_core()
6734 if (idle) in select_idle_core()
7823 if (unlikely(!se->on_rq || curr == rq->idle)) in check_preempt_wakeup()
7874 goto idle; in pick_next_task_fair()
7913 goto idle; in pick_next_task_fair()
7986 idle: in pick_next_task_fair()
8269 enum cpu_idle_type idle; member
8368 if (env->idle == CPU_IDLE) in migrate_degrades_locality()
8437 if (env->idle == CPU_NEWLY_IDLE || in can_migrate_task()
8478 schedstat_inc(env->sd->lb_hot_gained[env->idle]); in can_migrate_task()
8536 schedstat_inc(env->sd->lb_gained[env->idle]); in detach_one_task()
8574 if (env->idle != CPU_NOT_IDLE && env->src_rq->nr_running <= 1) in detach_tasks()
8658 if (env->idle == CPU_NEWLY_IDLE) in detach_tasks()
8679 schedstat_add(env->sd->lb_gained[env->idle], detached); in detach_tasks()
9406 } else if ((env->idle != CPU_NOT_IDLE) && in update_sg_lb_stats()
9420 env->idle != CPU_NOT_IDLE && sgs->sum_h_nr_running && in update_sg_lb_stats()
9615 if (rq->curr != rq->idle && rq->curr != p) in idle_cpu_without()
9931 if (!sched_feat(SIS_UTIL) || env->idle == CPU_NEWLY_IDLE) in update_idle_cpu_scan()
10012 if (env->idle != CPU_NEWLY_IDLE || in update_sd_lb_stats()
10140 if (env->idle != CPU_NOT_IDLE && env->imbalance == 0) { in calculate_imbalance()
10358 if (env->idle == CPU_NOT_IDLE) in find_busiest_group()
10553 return env->idle != CPU_NOT_IDLE && (env->sd->flags & SD_ASYM_PACKING) && in asym_active_balance()
10590 if ((env->idle != CPU_NOT_IDLE) && in need_active_balance()
10624 if (env->idle == CPU_NEWLY_IDLE) { in should_we_balance()
10648 struct sched_domain *sd, enum cpu_idle_type idle, in load_balance() argument
10662 .idle = idle, in load_balance()
10671 schedstat_inc(sd->lb_count[idle]); in load_balance()
10681 schedstat_inc(sd->lb_nobusyg[idle]); in load_balance()
10687 schedstat_inc(sd->lb_nobusyq[idle]); in load_balance()
10693 schedstat_add(sd->lb_imbalance[idle], env.imbalance); in load_balance()
10813 schedstat_inc(sd->lb_failed[idle]); in load_balance()
10820 if (idle != CPU_NEWLY_IDLE) in load_balance()
10891 schedstat_inc(sd->lb_balanced[idle]); in load_balance()
10904 if (env.idle == CPU_NEWLY_IDLE) in load_balance()
11008 .idle = CPU_IDLE, in active_load_balance_cpu_stop()
11079 static void rebalance_domains(struct rq *rq, enum cpu_idle_type idle) in rebalance_domains() argument
11083 int busy = idle != CPU_IDLE && !sched_idle_cpu(cpu); in rebalance_domains()
11125 if (load_balance(cpu, rq, sd, idle, &continue_balancing)) { in rebalance_domains()
11131 idle = idle_cpu(cpu) ? CPU_IDLE : CPU_NOT_IDLE; in rebalance_domains()
11132 busy = idle != CPU_IDLE && !sched_idle_cpu(cpu); in rebalance_domains()
11595 static bool nohz_idle_balance(struct rq *this_rq, enum cpu_idle_type idle) in nohz_idle_balance() argument
11604 if (idle != CPU_IDLE) in nohz_idle_balance()
11660 static inline bool nohz_idle_balance(struct rq *this_rq, enum cpu_idle_type idle) in nohz_idle_balance() argument
11811 enum cpu_idle_type idle = this_rq->idle_balance ? in run_rebalance_domains()
11822 if (nohz_idle_balance(this_rq, idle)) in run_rebalance_domains()
11827 rebalance_domains(this_rq, idle); in run_rebalance_domains()
12452 int sched_group_set_idle(struct task_group *tg, long idle) in sched_group_set_idle() argument
12459 if (idle < 0 || idle > 1) in sched_group_set_idle()
12464 if (tg->idle == idle) { in sched_group_set_idle()
12469 tg->idle = idle; in sched_group_set_idle()
12481 grp_cfs_rq->idle = idle; in sched_group_set_idle()