Re: [RFC PATCH v2 3/8] sched/cpufreq_schedutil: make worker kthread be SCHED_DEADLINE

From: Peter Zijlstra
Date: Wed Dec 20 2017 - 07:57:27 EST


On Tue, Dec 05, 2017 at 01:34:00PM +0100, Juri Lelli wrote:
> > What about using for all these wrappers the same utility function you
> > already use in this source file? I.e.
> >
> > if (unlikely(dl_entity_is_special(dl_se)))
> > return;
> > __add_rq_bw(dl_se->dl_bw, dl_rq);

> > > +static inline int dl_entity_is_special(struct sched_dl_entity *dl_se)
> > > +{
> > #ifdef CONFIG_CPU_FREQ_GOV_SCHEDUTIL
> > > + return dl_se->flags & SCHED_FLAG_SUGOV;
> > #else
> > return false;
> > #endif
> > > +}

Move the unlikely in here, saves on typing.