|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 3/3] xen: RCU: make the period of the idle timer adaptive.
On Tue, 2017-09-26 at 09:24 -0600, Jan Beulich wrote:
> > > > On 15.09.17 at 20:01, <dario.faggioli@xxxxxxxxxx> wrote:
> > @@ -495,8 +507,18 @@ void rcu_idle_timer_stop()
> >
> > static void rcu_idle_timer_handler(void* data)
> > {
> > - /* Nothing, really... Just count the number of times we fire
> > */
> > perfc_incr(rcu_idle_timer);
> > +
> > + if ( !cpumask_empty(&rcu_ctrlblk.cpumask) )
> > + {
> > + idle_timer_period = min_t(s_time_t, IDLE_TIMER_PERIOD_MAX,
> > + idle_timer_period +
> > IDLE_TIMER_PERIOD_INCR);
> > + }
> > + else
> > + {
> > + idle_timer_period = max_t(s_time_t, IDLE_TIMER_PERIOD_MIN,
> > + idle_timer_period -
> > IDLE_TIMER_PERIOD_DECR);
> > + }
>
> Pointless braces. And do you really need min_t()/max_t() here,
> rather than just min()/max()?
>
I probably can. This must be a leftover from a version when the time of
idle_timer_period, and of the IDLE_TIMER_PERIOD_{MIN,MAX} constants
wasn't matching.
Sorry!
Dario
--
<<This happens because I choose it to happen!>> (Raistlin Majere)
-----------------------------------------------------------------
Dario Faggioli, Ph.D, http://about.me/dario.faggioli
Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)Attachment:
signature.asc _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |