Messages in this thread | | | Date | Wed, 20 Dec 2017 13:57:05 +0100 | From | Peter Zijlstra <> | Subject | Re: [RFC PATCH v2 3/8] sched/cpufreq_schedutil: make worker kthread be SCHED_DEADLINE |
| |
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.
| |