Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932728AbcCOVuL (ORCPT ); Tue, 15 Mar 2016 17:50:11 -0400 Received: from casper.infradead.org ([85.118.1.10]:39385 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753138AbcCOVuH (ORCPT ); Tue, 15 Mar 2016 17:50:07 -0400 Date: Tue, 15 Mar 2016 22:49:41 +0100 From: Peter Zijlstra To: Michael Turquette Cc: rjw@rjwysocki.net, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Juri.Lelli@arm.com, steve.muckle@linaro.org, morten.rasmussen@arm.com, dietmar.eggemann@arm.com, vincent.guittot@linaro.org, Michael Turquette Subject: Re: [PATCH 1/8] sched/cpufreq: remove cpufreq_trigger_update() Message-ID: <20160315214941.GN6344@twins.programming.kicks-ass.net> References: <1457932932-28444-1-git-send-email-mturquette+renesas@baylibre.com> <1457932932-28444-2-git-send-email-mturquette+renesas@baylibre.com> <20160315211448.GB6344@twins.programming.kicks-ass.net> <20160315214545.30639.98727@quark.deferred.io> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160315214545.30639.98727@quark.deferred.io> User-Agent: Mutt/1.5.21 (2012-12-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1361 Lines: 29 On Tue, Mar 15, 2016 at 02:45:45PM -0700, Michael Turquette wrote: > Quoting Peter Zijlstra (2016-03-15 14:14:48) > > On Sun, Mar 13, 2016 at 10:22:05PM -0700, Michael Turquette wrote: > > > cpufreq_trigger_update() was introduced in "cpufreq: Rework the > > > scheduler hooks for triggering updates"[0]. Consensus is that this > > > helper is not needed and removing it will aid in experimenting with > > > deadline and rt capacity requests. > > > > > > Instead of reverting the above patch, which includes useful renaming of > > > data structures and related functions, simply remove the function, > > > update affected kerneldoc and change rt.c and deadline.c to use > > > cpufreq_update_util(). > > > > This fails to explain how the need for these hooks is dealt with. > > Sorry, I don't understand your point. The removed hook, > "cpufreq_trigger_update()" was only used in deadline.c and rt.c, and > this patch effectively reverts Rafael's patch that introduces that > function. > > It simply does not revert the other changes in Rafael's patch, such as > some renaming. > > deadline.c and rt.c are made to use cpufreq_update_util() and pass in > ULONG_MAX for capacity and 0 for time. This is exactly what they did > before patch "cpufreq: Rework the scheduler hooks for triggering > updates". Clearly I need to learn to read again.. You're right.