Received: by 10.213.65.68 with SMTP id h4csp792891imn; Sat, 7 Apr 2018 09:40:35 -0700 (PDT) X-Google-Smtp-Source: AIpwx49GTRjKxduuN2AOEoyfx5OMwbxspyGGJHr/MFFESFK3xjJuho1n/PPTlVQkvntDQbFLzkUp X-Received: by 2002:a17:902:ba87:: with SMTP id k7-v6mr32410659pls.124.1523119235739; Sat, 07 Apr 2018 09:40:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523119235; cv=none; d=google.com; s=arc-20160816; b=0/yoLbETvlJ6A35ObQEnBxz4Rl8r2DQtXMkSysbCqE2FfWVaWfhAfPo4HO1m6LwJHI eheVqdRBTQQyxMUOdAW7Z3nOgnw5cDsKHdhfU9P9nWLLpEA0EPHk8KGoNfk3CZsactEy JT6QePd+4NMBnSFHE/5lkosRkEmF7DHqZTlAtCBOtZKoIczbU2ss25wEvmJ0Rhy5JcEb 2pEEsmt0XSEiOnrCaHRsiEj0+4pF79X9cJSwUgwfdmEPyRE6OJwRZxoYCDWZo/aZJkYT VTKbpSqWJxyL3Rpq3ZnubUQwp7ICwnLdgiywAuBRnIk2Ev8cLCgH111ZpSlqoaDPklyu uCmQ== 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=piBddHOsPWOqp8VSG0RD0V3gpl47HrCce7x3Ax4ALEk=; b=AmjVU0mc/9fBSnDodGgZdHMBFaPElPTkwzef+GUpvJWTjz/1MKlQRy0AMDnLIPHbO/ QQrg+05lkp43z4/CkB9oXrflHJ6hgesyvHWZ8KWIOl6ogB93QZYCUb9yUNmR+IYxJzfC EmRyf0AOJdsiAu4ZThZlpecz4RjuIVWXIopxJHp2HOhF8hq005Tb2lI0nLhfsFptguXo +kxW/G8t3Vpp5/f53hcwvE2TJaQtKpX+Q9WeD28K1I6qPDi3HIixjMDAX3ViwbuubSyd fcbViJAd3BgsgRHcVQiWvSTVPId397+C9I1KqQfnGfQy5c6SjreOMxkMRo5zj1Y653dT 5lXg== 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 a6-v6si12471399pln.632.2018.04.07.09.39.48; Sat, 07 Apr 2018 09:40:35 -0700 (PDT) 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 S1751924AbeDGQg2 (ORCPT + 99 others); Sat, 7 Apr 2018 12:36:28 -0400 Received: from cloudserver094114.home.pl ([79.96.170.134]:52177 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751499AbeDGQg1 (ORCPT ); Sat, 7 Apr 2018 12:36:27 -0400 Received: from 85.219.170.202 (85.219.170.202) (HELO aspire.rjw.lan) by serwer1319399.home.pl (79.96.170.134) with SMTP (IdeaSmtpServer 0.83) id dddd8bcedb128b11; Sat, 7 Apr 2018 18:36:25 +0200 From: "Rafael J. Wysocki" To: Frederic Weisbecker Cc: Linux PM , Peter Zijlstra , Frederic Weisbecker , Thomas Gleixner , Paul McKenney , Thomas Ilsche , Doug Smythies , Rik van Riel , Aubrey Li , Mike Galbraith , LKML , Len Brown Subject: Re: [PATCH v9 06/10] time: tick-sched: Split tick_nohz_stop_sched_tick() Date: Sat, 07 Apr 2018 18:36:34 +0200 Message-ID: <2792573.Q2KagqXIrf@aspire.rjw.lan> In-Reply-To: <20180407023623.GA16600@lerouge> References: <1736751.LdhZHb50jq@aspire.rjw.lan> <4511679.r9V9QramI4@aspire.rjw.lan> <20180407023623.GA16600@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 Saturday, April 7, 2018 4:36:25 AM CEST Frederic Weisbecker wrote: > On Wed, Apr 04, 2018 at 10:41:13AM +0200, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > > > In order to address the issue with short idle duration predictions > > by the idle governor after the scheduler tick has been stopped, split > > tick_nohz_stop_sched_tick() into two separate routines, one computing > > the time to the next timer event and the other simply stopping the > > tick when the time to the next timer event is known. > > > > Prepare these two routines to be called separately, as one of them > > will be called by the idle governor in the cpuidle_select() code > > path after subsequent changes. > > > > Update the former callers of tick_nohz_stop_sched_tick() to use > > the new routines, tick_nohz_next_event() and tick_nohz_stop_tick(), > > instead of it and move the updates of the sleep_length field in > > struct tick_sched into __tick_nohz_idle_stop_tick() as it doesn't > > need to be updated anywhere else. > > > > There should be no intentional visible changes in functionality > > resulting from this change. > > > > Signed-off-by: Rafael J. Wysocki > > Reviewed-by: Frederic Weisbecker > > Thanks! And sorry for the slow reviews, the changes are sensitive Right, very much so. > and I want to make sure we are not breaking some subtlety. Thanks a lot for doing that!