Re: [patch 13/20] timer: Switch to a non cascading wheel
From: Thomas Gleixner
Date: Mon Jun 13 2016 - 10:41:48 EST
On Mon, 13 Jun 2016, Richard Cochran wrote:
> On Mon, Jun 13, 2016 at 08:41:00AM -0000, Thomas Gleixner wrote:
> > +static inline struct timer_base *get_timer_base(u32 tflags)
> > +{
> > + return get_timer_cpu_base(tflags, tflags & TIMER_BASEMASK);
> > +}
>
> This should rather be (tflags & TIMER_CPUMASK) to avoid using
> per_cpu_ptr() with the TIMER_MIGRATING bit set in the CPU index.
>
> The one caller in this patch is okay, since it already checks that
> TIMER_MIGRATING is clear:
Good catch!
Thanks,
tglx