From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965313AbeCHJFQ (ORCPT ); Thu, 8 Mar 2018 04:05:16 -0500 Received: from cloudserver094114.home.pl ([79.96.170.134]:41894 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755373AbeCHJFM (ORCPT ); Thu, 8 Mar 2018 04:05:12 -0500 From: "Rafael J. Wysocki" To: Frederic Weisbecker Cc: Peter Zijlstra , Linux PM , Thomas Gleixner , Frederic Weisbecker , Paul McKenney , Thomas Ilsche , Doug Smythies , Rik van Riel , Aubrey Li , Mike Galbraith , LKML Subject: Re: [RFC/RFT][PATCH v2 2/6] sched: idle: Do not stop the tick upfront in the idle loop Date: Thu, 08 Mar 2018 10:05:52 +0100 Message-ID: <2273590.04PyvAHADg@aspire.rjw.lan> In-Reply-To: <20180307233911.GB9367@lerouge> References: <2067762.1uWBf5RSRc@aspire.rjw.lan> <3346281.BDGJiv2ZOp@aspire.rjw.lan> <20180307233911.GB9367@lerouge> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thursday, March 8, 2018 12:39:12 AM CET Frederic Weisbecker wrote: > On Tue, Mar 06, 2018 at 10:02:15AM +0100, Rafael J. Wysocki wrote: > > Index: linux-pm/kernel/sched/idle.c > > =================================================================== > > --- linux-pm.orig/kernel/sched/idle.c > > +++ linux-pm/kernel/sched/idle.c > > @@ -220,13 +220,17 @@ static void do_idle(void) > > */ > > > > __current_set_polling(); > > - tick_nohz_idle_enter(); > > + tick_nohz_idle_prepare(); > > Since we leave tick_nohz_idle_exit() unchanged, can we keep tick_nohz_idle_prepare() > under the name tick_nohz_idle_enter() so that we stay symetric? And then make xen call > the two functions: > > tick_nohz_idle_enter(); > tick_nohz_idle_go_idle(); No problem with that. > Also can we rename tick_nohz_idle_go_idle() to tick_nohz_idle_stop_tick() ? > This will be more self-explanatory. But it doesn't always stop the tick which is why I chose the other name.