lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-ID: <20171220125705.djemtgopmmthzqjz@hirez.programming.kicks-ass.net> Date: Wed, 20 Dec 2017 13:57:05 +0100 From: Peter Zijlstra <peterz@...radead.org> To: Juri Lelli <juri.lelli@...hat.com> Cc: Patrick Bellasi <patrick.bellasi@....com>, mingo@...hat.com, rjw@...ysocki.net, viresh.kumar@...aro.org, linux-kernel@...r.kernel.org, linux-pm@...r.kernel.org, tglx@...utronix.de, vincent.guittot@...aro.org, rostedt@...dmis.org, luca.abeni@...tannapisa.it, claudio@...dence.eu.com, tommaso.cucinotta@...tannapisa.it, bristot@...hat.com, mathieu.poirier@...aro.org, tkjos@...roid.com, joelaf@...gle.com, morten.rasmussen@....com, dietmar.eggemann@....com, alessio.balsini@....com, Juri Lelli <juri.lelli@....com>, Ingo Molnar <mingo@...nel.org>, "Rafael J . Wysocki" <rafael.j.wysocki@...el.com> 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.
Powered by blists - more mailing lists