On Tue, 2017-09-26 at 09:24 -0600, Jan Beulich wrote:
> > > > On 15.09.17 at 20:01, 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
>>> On 15.09.17 at 20:01, 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 (
Basically, if the RCU idle timer, when (if!) it fires,
finds that the grace period isn't over, we increase the
timer's period (i.e., it will fire later, next time).
If, OTOH, it finds the grace period is already finished,
we decrease the timer's period (i.e., it will fire a bit
earlier next time).