Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1628357

Re: [patch V2 03/10] timers: Rework idle logic

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From Frederic Weisbecker <fweisbec@gmail.com>
Newsgroups linux.kernel
Subject Re: [patch V2 03/10] timers: Rework idle logic
Date Fri, 21 Apr 2017 17:30:02 +0200
Message-ID <tyIFs-7rg-5@gated-at.bofh.it> (permalink)
References <txEue-8r4-5@gated-at.bofh.it> <txEue-8r4-3@gated-at.bofh.it> <txRKO-8uq-17@gated-at.bofh.it>
X-Original-To Peter Zijlstra <peterz@infradead.org>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=4ksr/AcCuVndymakv+PkU+aoeBxSsjtXESzEEop8ChE=; b=XZ3rqR5iwF1AQ+hdIiHt5Uht+zn6kLgpTZ0reRe+UO9/OQOq4TvdvDANhiKrJSDFxB oSeCvX1Qb1J0JU0nyB9VnhLGfVcF18R0nt0PtglvGFr5VzQTxC1QYYa7kUvy/X+oxXBJ VfcIN5yxw4d/SzVhgx+mRPb2gmTWlsbytumQI5X9BGALsivKAhiMZIvT3A9QUwL8DQ6S mxBp+KPtTI7mDxf2GlVdHToVQDOu7qmAhoHRIpSb0s5PEKf2891mq2Fnxq7pIcEHwzeO 1NJ8LPKgFmG0L5L8PiPTd+4O+MWd8jgnLY+88ae/9dQ2ti8m+uCwrfUNbn8aR/IGtlBs xreg==
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=4ksr/AcCuVndymakv+PkU+aoeBxSsjtXESzEEop8ChE=; b=ATgvqxgukO7fW+Epcb2nIFrrIx23T3aI9vrdiRxplUMg3U/Dk/YNEBVQ5SCAN4EY6n F5QAgysjV0wrma/RF6F+99bqynE2q+P6KF3PDIKuGPc7xFCKCHYCpZ7BCL0aPwQqBp1I q/1DnAnCfRQvmelir9bc/qWG2I4RUMC1bvXiA8UTfjhjBaGTdjakfglY4XoUV/GaO+g9 OPgQPuien/gIQ6Nasykvf5Xi4TmZBTm2x37/s4Tasg3ebJxvKH1tdgcHfzrrKKvVm6nv 6+TgiI2yA+xO+lKiVHrv5uJdoqFh65xqDrdUux38EwocJaScXx2D74dJydQtiS9oo/vF Hv5g==
X-Gm-Message-State AN3rC/5l5YySHQH31DogptYhL9BnoLafJcIypmYLd4I48IJJYzR2zBr9 YcKM0SosWBqfHQ==
X-Received by 10.28.32.193 with SMTP id g184mr8177364wmg.56.1492785841239; Fri, 21 Apr 2017 07:44:01 -0700 (PDT)
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
User-Agent Mutt/1.5.24 (2015-08-30)
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 31
Organization linux.* mail to news gateway
X-Original-Cc Thomas Gleixner <tglx@linutronix.de>, LKML <linux-kernel@vger.kernel.org>, John Stultz <john.stultz@linaro.org>, Eric Dumazet <edumazet@google.com>, Anna-Maria Gleixner <anna-maria@linutronix.de>, "Rafael J. Wysocki" <rafael.j.wysocki@intel.com>, linux-pm@vger.kernel.org, Arjan van de Ven <arjan@infradead.org>, "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>, Rik van Riel <riel@redhat.com>
X-Original-Date Fri, 21 Apr 2017 16:43:59 +0200
X-Original-Message-ID <20170421144358.GC2586@lerouge>
X-Original-References <20170418111102.490432548@linutronix.de> <20170418111400.589271247@linutronix.de> <20170419065039.nhmi5vrhydqy5ftw@hirez.programming.kicks-ass.net>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1628357

Show key headers only | View raw


On Wed, Apr 19, 2017 at 08:50:39AM +0200, Peter Zijlstra wrote:
> On Tue, Apr 18, 2017 at 01:11:05PM +0200, Thomas Gleixner wrote:
> > Storing next event and determining whether the base is idle can be done in
> > __next_timer_interrupt(). 
> > 
> > Preparatory patch for new call sites which need this information as well.
> > 
> > Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
> > ---
> >  kernel/time/timer.c |   43 ++++++++++++++++++++++++-------------------
> >  1 file changed, 24 insertions(+), 19 deletions(-)
> > 
> > --- a/kernel/time/timer.c
> > +++ b/kernel/time/timer.c
> > @@ -1358,8 +1358,11 @@ static int next_pending_bucket(struct ti
> >  /*
> >   * Search the first expiring timer in the various clock levels. Caller must
> >   * hold base->lock.
> > + *
> > + * Stores the next expiry time in base. The return value indicates whether
> > + * the base is empty or not.
> >   */
> > -static unsigned long __next_timer_interrupt(struct timer_base *base)
> > +static bool __next_timer_interrupt(struct timer_base *base)
> 
> Can't say I'm a fan of this.. I sort of see where this is going, but the
> fact remains that __next_timer_interrupt(), as a function, makes me
> expect a return value of time/timer quantity.

Maybe we can just do a rename like fetch_next_timer_interrupt() or
update_next_timer_interrupt()?

Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

[patch V2 03/10] timers: Rework idle logic Thomas Gleixner <tglx@linutronix.de> - 2017-04-18 18:50 +0200
  Re: [patch V2 03/10] timers: Rework idle logic Peter Zijlstra <peterz@infradead.org> - 2017-04-19 09:00 +0200
    Re: [patch V2 03/10] timers: Rework idle logic Frederic Weisbecker <fweisbec@gmail.com> - 2017-04-21 17:30 +0200

csiph-web