On 28/04/20 23:33, Scott Wood wrote: >> > + >> > +/* Is there a task of a high priority class? */ >> > +static inline bool rq_has_runnable_rt_task(struct rq *rq) >> > +{ >> > + return unlikely(rq->nr_running != rq->cfs.h_nr_running); >> >> Seeing as that can be RT, DL or stopper, that name is somewhat misleading. > > rq_has_runnable_rt_dl_task()? Or is there some term that unambiguously > encompasses both? > Naming is a pain as always; I'd shove it in fair.c as "rq_has_higher_tasks()" or similar. > -Scott