From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752949AbeDABud (ORCPT ); Sat, 31 Mar 2018 21:50:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:55102 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752454AbeDABuc (ORCPT ); Sat, 31 Mar 2018 21:50:32 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EEA13204EF 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: Sun, 1 Apr 2018 03:50:28 +0200 From: Frederic Weisbecker To: "Rafael J. Wysocki" 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 v8 01/10] time: tick-sched: Reorganize idle tick management code Message-ID: <20180401015027.GA28019@lerouge> References: <40092860.XNQZrLjKDd@aspire.rjw.lan> <6322298.N2JNOlAanx@aspire.rjw.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6322298.N2JNOlAanx@aspire.rjw.lan> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 29, 2018 at 02:00:01PM +0200, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Prepare the scheduler tick code for reworking the idle loop to > avoid stopping the tick in some cases. > > The idea is to split the nohz idle entry call to decouple the idle > time stats accounting and preparatory work from the actual tick stop > code, in order to later be able to delay the tick stop once we reach > more power-knowledgeable callers. > > Move away the tick_nohz_start_idle() invocation from > __tick_nohz_idle_enter(), rename the latter to > __tick_nohz_idle_stop_tick() and define tick_nohz_idle_stop_tick() > as a wrapper around it for calling it from the outside. > > Make tick_nohz_idle_enter() only call tick_nohz_start_idle() instead > of calling the entire __tick_nohz_idle_enter(), add another wrapper > disabling and enabling interrupts around tick_nohz_idle_stop_tick() > and make the current callers of tick_nohz_idle_enter() call it too > to retain their current functionality. > > Signed-off-by: Rafael J. Wysocki Reviewed-by: Frederic Weisbecker Thanks!