From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757601AbcBDDbt (ORCPT ); Wed, 3 Feb 2016 22:31:49 -0500 Received: from mail-pf0-f182.google.com ([209.85.192.182]:33890 "EHLO mail-pf0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755857AbcBDDbr (ORCPT ); Wed, 3 Feb 2016 22:31:47 -0500 Date: Thu, 4 Feb 2016 09:01:44 +0530 From: Viresh Kumar To: "Rafael J. Wysocki" Cc: Linux PM list , Linux Kernel Mailing List , Peter Zijlstra , Srinivas Pandruvada , Juri Lelli , Steve Muckle , Thomas Gleixner Subject: Re: [PATCH 1/3] cpufreq: Add a mechanism for registering utilization update callbacks Message-ID: <20160204033144.GR3469@vireshk> References: <3071836.JbNxX8hU6x@vostro.rjw.lan> <1895005.WdX4A2LmI5@vostro.rjw.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1895005.WdX4A2LmI5@vostro.rjw.lan> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 29-01-16, 23:53, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Introduce a mechanism by which parts of the cpufreq subsystem > ("setpolicy" drivers or the core) can register callbacks to be > executed from cpufreq_update_util() which is invoked by the > scheduler's update_load_avg() on CPU utilization changes. > > This allows the "setpolicy" drivers to dispense with their timers > and do all of the computations they need and frequency/voltage > adjustments in the update_load_avg() code path, among other things. > > The scheduler changes were suggested by Peter Zijlstra. > > Signed-off-by: Rafael J. Wysocki > --- > drivers/cpufreq/cpufreq.c | 44 ++++++++++++++++++++++++++++++++++++++++++++ > include/linux/cpufreq.h | 7 +++++++ > include/linux/sched.h | 2 ++ > kernel/sched/fair.c | 29 ++++++++++++++++++++++++++++- > 4 files changed, 81 insertions(+), 1 deletion(-) Acked-by: Viresh Kumar -- viresh