Received: by 10.223.185.116 with SMTP id b49csp5643386wrg; Wed, 7 Mar 2018 15:40:34 -0800 (PST) X-Google-Smtp-Source: AG47ELsNqIsbdFtnM9z46sIgZ72CWGykkmBaxIf6CqAYsh6/p+1H/4yXgkWXflaTlw4+hU0Jdu4B X-Received: by 10.99.117.10 with SMTP id q10mr19454232pgc.423.1520466034529; Wed, 07 Mar 2018 15:40:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520466034; cv=none; d=google.com; s=arc-20160816; b=FL/FMrUgBrA3HsuGUGhaaOIfOZrxgQwQPpekQcc9uwvzMnUZWsfZSMTgqujkOqkLmR UoRi0i7St+MO74kj+10fXi0xtuT7P8tWKCYTk0rF9+gSWAmEmSI4sW0aq8MEmcDeJOaD fO5eLV7WgRnXuEoZyZU8fj3OewqGKHGBKzVbUC9O0GpytSjWpXyKgrc3ZIHx+mdC71p/ nMmtisgl0XoWJiD+1NDYviAXDm0EEVcn0Z+6rG3w1FDzuk+umfEh8n6jMkcqlcCalrnT Z1y0HF5moywu4gBgc6CIK32sblG49DhIpj6lk37vOOHzes+MAAb8BIHkK3e7Yd/1Bfbs mIDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dmarc-filter:arc-authentication-results; bh=6vONRYxKKheI9GNrD3QlGSQfBCbs5p9zgeTPh9yLP+w=; b=L1TdNaV4L0KDQ7MdqKS8kQBceQ/GHNB3UGRFPlL816sKqWR2+AaVnBq8ziCLQIGhmk 0XeWEFjtT5EcrFA6pHWnxVSv+nPnYAmajvZmbvK14Acjv7ZpDWxLCW6o7QmCNlCa9SfR P2rqD0nzg6bnKUIO4XQrnzbZ1+73gOKS+kzhxXgMULu76gOzo/cV3cGQGbxCqACX1YwT i/vM8s1JGvVbaM7TpmISlD8OUvRqRcedprfrqiSjPOwh2XTRMdn/8hB+FaHoKn4WoDO3 2KSoNgGkar//sXxtRD2emXQ0OxV+1xfyILieBWsmWt1XSR42g4Vy0ytN33u4GNL/4eaw hZKQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w27si14714766pfl.142.2018.03.07.15.40.20; Wed, 07 Mar 2018 15:40:34 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754985AbeCGXjT (ORCPT + 99 others); Wed, 7 Mar 2018 18:39:19 -0500 Received: from mail.kernel.org ([198.145.29.99]:52516 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754966AbeCGXjQ (ORCPT ); Wed, 7 Mar 2018 18:39:16 -0500 Received: from localhost (i16-les03-th2-31-37-47-191.sfr.lns.abo.bbox.fr [31.37.47.191]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0162C205F4; Wed, 7 Mar 2018 23:39:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0162C205F4 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=frederic@kernel.org Date: Thu, 8 Mar 2018 00:39:12 +0100 From: Frederic Weisbecker To: "Rafael J. Wysocki" 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 Message-ID: <20180307233911.GB9367@lerouge> References: <2067762.1uWBf5RSRc@aspire.rjw.lan> <3346281.BDGJiv2ZOp@aspire.rjw.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3346281.BDGJiv2ZOp@aspire.rjw.lan> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(); Also can we rename tick_nohz_idle_go_idle() to tick_nohz_idle_stop_tick() ? This will be more self-explanatory. Thanks.