Re: kernel/timer: avoid spurious ksoftirqd wakeups

Marcelo Tosatti
2015-04-02T20:30:15Z

On Thu, Apr 02, 2015 at 11:32:49AM +0800, Hillf Danton wrote:
> > --- a/kernel/time/tick-sched.c
> > +++ b/kernel/time/tick-sched.c
> > @@ -568,6 +568,7 @@ static ktime_t tick_nohz_stop_sched_tick(struct tick_sched *ts,
> > unsigned long rcu_delta_jiffies;
> > struct clock_event_device *dev = __this_cpu_read(tick_cpu_device.evtdev);
> > u64 time_delta;
> > + bool raise_softirq;
> >
> s/raise_softirq/raise_softirq = false/ ?

Not necessary, variable is initialized before being used.

> > time_delta = timekeeping_max_deferment();
> >