Received: by 10.223.185.116 with SMTP id b49csp6074327wrg; Thu, 8 Mar 2018 01:07:14 -0800 (PST) X-Google-Smtp-Source: AG47ELsqD4lu22xSp6srfnJm7677LLX5AfeFdjRRjRiLTm4dTrrDLsbDT7akHunth+tZaQsSTAaW X-Received: by 10.98.215.81 with SMTP id v17mr3969272pfl.110.1520500034417; Thu, 08 Mar 2018 01:07:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520500034; cv=none; d=google.com; s=arc-20160816; b=IyFJfQwmbLVjghuUXVbV/oXeuEEWZIZWzj8D9iJj4ct3S2eSPMXFjz9AwZuLDlfGTE 8K5dX9NeRuR6DGtKR8nyCILs+U8XdUFpDlUNsxsU4ju8HIG7ZzPhzy7T5Y0ZYElXICQc /3guX2CFazz3yc/mG1tlr7lUnKGVQfwSnNf1Q92kyPITm4k8m1KQdngQM3Gpm7gHafGy aOE0Qj1OdQZhu1LgVXxsdOTJNAItQ82413dVVIEOE6cqAFjPXf+bq+dJeNeP/cDXz511 xf0kebgoIGEdNHtoJLT+o//3wSxfRuPUXbhk/bbmSLC6Li7fyWusO54I5NdeHequm/eB hzTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=IxIh9NJQ4TOyOT9c0CvgJGQTQ6MTyWyibFmFTDGWpzs=; b=nm03gjeSiBkv5SIMGpRQfvGCec++pBbetFpiyyMBYlUfD5jWTC7rBJ7+vnhCkY4jiC iUK6S1BqVTjBw8WfPpnorULVM68hhR/3W590vt5FsU72t8W4bN0WMoWBZ8Xte3u3//DY w9As0n0QimMuy0GKmKYvx9P1iVMpdoIr8xKgCOKGu8n8bCqm4k4m7eQF/naWqvpnYZuv xHi6sB0YRLmdX+cDq1Us7LnAgSTUwJYv6GycUmJ/rTOxi14hjd01LpHHZgrQzsD+eVn4 0HOL0g8PIA8dWkyXPzRkJXH0P0q5NhHzY9TJrJda4Z7CrJwg1D8LpwX85tu6r79RtL/l 3E0Q== 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 k67si15426545pfj.298.2018.03.08.01.07.00; Thu, 08 Mar 2018 01:07:14 -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 S965304AbeCHJFQ (ORCPT + 99 others); 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 Received: from 79.184.254.228.ipv4.supernova.orange.pl (79.184.254.228) (HELO aspire.rjw.lan) by serwer1319399.home.pl (79.96.170.134) with SMTP (IdeaSmtpServer 0.83) id 3b41774906b31b17; Thu, 8 Mar 2018 10:05:10 +0100 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 Precedence: bulk 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.