Lines Matching refs:sched_class
157 if (p->sched_class == &stop_sched_class) /* trumps deadline */ in __task_prio()
163 if (p->sched_class == &idle_sched_class) in __task_prio()
774 rq->curr->sched_class->task_tick(rq, rq->curr, 1); in hrtick()
1278 if (update_load && p->sched_class == &fair_sched_class) { in set_load_weight()
1638 if (unlikely(!p->sched_class->uclamp_enabled)) in uclamp_rq_inc()
1662 if (unlikely(!p->sched_class->uclamp_enabled)) in uclamp_rq_dec()
2060 p->sched_class->enqueue_task(rq, p, flags); in enqueue_task()
2080 p->sched_class->dequeue_task(rq, p, flags); in dequeue_task()
2162 const struct sched_class *prev_class, in check_class_changed()
2165 if (prev_class != p->sched_class) { in check_class_changed()
2169 p->sched_class->switched_to(rq, p); in check_class_changed()
2171 p->sched_class->prio_changed(rq, p, oldprio); in check_class_changed()
2176 if (p->sched_class == rq->curr->sched_class) in check_preempt_curr()
2177 rq->curr->sched_class->check_preempt_curr(rq, p, flags); in check_preempt_curr()
2178 else if (sched_class_above(p->sched_class, rq->curr->sched_class)) in check_preempt_curr()
2497 if (p->sched_class->find_lock_rq) in push_cpu_stop()
2498 lowest_rq = p->sched_class->find_lock_rq(p, rq); in push_cpu_stop()
2574 p->sched_class->set_cpus_allowed(p, new_mask, flags); in __do_set_cpus_allowed()
3122 p->sched_class == &fair_sched_class && in set_task_cpu()
3150 if (p->sched_class->migrate_task_rq) in set_task_cpu()
3151 p->sched_class->migrate_task_rq(p, new_cpu); in set_task_cpu()
3512 cpu = p->sched_class->select_task_rq(p, cpu, wake_flags); in select_task_rq()
3549 stop->sched_class = &stop_sched_class; in sched_set_stop_task()
3573 old_stop->sched_class = &rt_sched_class; in sched_set_stop_task()
3645 if (p->sched_class->task_woken) { in ttwu_do_wakeup()
3651 p->sched_class->task_woken(rq, p); in ttwu_do_wakeup()
4632 p->sched_class = &rt_sched_class; in sched_fork()
4634 p->sched_class = &fair_sched_class; in sched_fork()
4678 if (p->sched_class->task_fork) in sched_cgroup_fork()
4679 p->sched_class->task_fork(p); in sched_cgroup_fork()
4739 if (p->sched_class->task_woken) { in wake_up_new_task()
4745 p->sched_class->task_woken(rq, p); in wake_up_new_task()
5145 if (prev->sched_class->task_dead) in finish_task_switch()
5146 prev->sched_class->task_dead(prev); in finish_task_switch()
5355 dest_cpu = p->sched_class->select_task_rq(p, task_cpu(p), WF_EXEC); in sched_exec()
5431 p->sched_class->update_curr(rq); in task_sched_runtime()
5511 curr->sched_class->task_tick(rq, curr, 0); in scheduler_tick()
5603 curr->sched_class->task_tick(rq, curr, 0); in sched_tick_remote()
5825 const struct sched_class *class; in put_prev_task_balance()
5834 for_class_range(class, prev->sched_class, &idle_sched_class) { in put_prev_task_balance()
5849 const struct sched_class *class; in __pick_next_task()
5858 if (likely(!sched_class_above(prev->sched_class, &fair_sched_class) && in __pick_next_task()
5907 const struct sched_class *class; in pick_task()
6882 p->sched_class = &dl_sched_class; in __setscheduler_prio()
6884 p->sched_class = &rt_sched_class; in __setscheduler_prio()
6886 p->sched_class = &fair_sched_class; in __setscheduler_prio()
6923 const struct sched_class *prev_class; in rt_mutex_setprio()
6980 prev_class = p->sched_class; in rt_mutex_setprio()
7090 p->sched_class->prio_changed(rq, p, old_prio); in set_user_nice()
7469 const struct sched_class *prev_class; in __sched_setscheduler()
7640 prev_class = p->sched_class; in __sched_setscheduler()
8329 current->sched_class->yield_task(rq); in do_sched_yield()
8703 if (!curr->sched_class->yield_to_task) in yield_to()
8706 if (curr->sched_class != p->sched_class) in yield_to()
8712 yielded = curr->sched_class->yield_to_task(rq, p); in yield_to()
8852 if (p->sched_class->get_rr_interval) in sched_rr_get_interval()
8853 time_slice = p->sched_class->get_rr_interval(rq, p); in sched_rr_get_interval()
9052 idle->sched_class = &idle_sched_class; in init_idle()
9320 const struct sched_class *class; in set_rq_online()
9335 const struct sched_class *class; in set_rq_offline()
10227 if (tsk->sched_class->task_change_group) in sched_change_group()
10228 tsk->sched_class->task_change_group(tsk); in sched_change_group()