Lines Matching refs:se
377 struct sched_entity **se; member
472 struct sched_entity *se, int cpu,
503 extern void set_task_rq_fair(struct sched_entity *se,
506 static inline void set_task_rq_fair(struct sched_entity *se, in set_task_rq_fair() argument
773 #define entity_is_task(se) (!se->my_q) argument
775 static inline void se_update_runnable(struct sched_entity *se) in se_update_runnable() argument
777 if (!entity_is_task(se)) in se_update_runnable()
778 se->runnable_weight = se->my_q->h_nr_running; in se_update_runnable()
781 static inline long se_runnable(struct sched_entity *se) in se_runnable() argument
783 if (entity_is_task(se)) in se_runnable()
784 return !!se->on_rq; in se_runnable()
786 return se->runnable_weight; in se_runnable()
790 #define entity_is_task(se) 1 argument
792 static inline void se_update_runnable(struct sched_entity *se) {} in se_update_runnable() argument
794 static inline long se_runnable(struct sched_entity *se) in se_runnable() argument
796 return !!se->on_rq; in se_runnable()
804 static inline long se_weight(struct sched_entity *se) in se_weight() argument
806 return scale_load_down(se->load.weight); in se_weight()
1439 static inline struct task_struct *task_of(struct sched_entity *se) in task_of() argument
1441 SCHED_WARN_ON(!entity_is_task(se)); in task_of()
1442 return container_of(se, struct task_struct, se); in task_of()
1447 return p->se.cfs_rq; in task_cfs_rq()
1451 static inline struct cfs_rq *cfs_rq_of(struct sched_entity *se) in cfs_rq_of() argument
1453 return se->cfs_rq; in cfs_rq_of()
1464 static inline struct task_struct *task_of(struct sched_entity *se) in task_of() argument
1466 return container_of(se, struct task_struct, se); in task_of()
1474 static inline struct cfs_rq *cfs_rq_of(struct sched_entity *se) in cfs_rq_of() argument
1476 struct task_struct *p = task_of(se); in cfs_rq_of()
1981 set_task_rq_fair(&p->se, p->se.cfs_rq, tg->cfs_rq[cpu]); in set_task_rq()
1982 p->se.cfs_rq = tg->cfs_rq[cpu]; in set_task_rq()
1983 p->se.parent = tg->se[cpu]; in set_task_rq()
1984 p->se.depth = tg->se[cpu] ? tg->se[cpu]->depth + 1 : 0; in set_task_rq()
2418 extern void init_entity_runnable_average(struct sched_entity *se);
3274 curr->se.sum_exec_runtime += delta_exec; in update_current_exec_runtime()
3277 curr->se.exec_start = now; in update_current_exec_runtime()