From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1423860AbcFMOlo (ORCPT ); Mon, 13 Jun 2016 10:41:44 -0400 Received: from www.linutronix.de ([62.245.132.108]:57345 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932668AbcFMOln (ORCPT ); Mon, 13 Jun 2016 10:41:43 -0400 Date: Mon, 13 Jun 2016 16:39:43 +0200 (CEST) From: Thomas Gleixner To: Richard Cochran cc: LKML , Ingo Molnar , Peter Zijlstra , "Paul E. McKenney" , Eric Dumazet , Frederic Weisbecker , Chris Mason , Arjan van de Ven , rt@linutronix.de Subject: Re: [patch 13/20] timer: Switch to a non cascading wheel In-Reply-To: <20160613143647.GA17907@localhost.localdomain> Message-ID: References: <20160613070440.950649741@linutronix.de> <20160613075929.282143900@linutronix.de> <20160613143647.GA17907@localhost.localdomain> User-Agent: Alpine 2.11 (DEB 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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