From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751506AbdISSjV (ORCPT ); Tue, 19 Sep 2017 14:39:21 -0400 Received: from mail-pg0-f47.google.com ([74.125.83.47]:44234 "EHLO mail-pg0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751000AbdISSjT (ORCPT ); Tue, 19 Sep 2017 14:39:19 -0400 X-Google-Smtp-Source: AOwi7QBU74hnXC82mMgLhx8yG9BLBGQanmJRXiaGne+2fu49CWzAz7MjhDphMFb9J7F5PSNk7D+07A== Date: Tue, 19 Sep 2017 11:39:17 -0700 From: Viresh Kumar To: Dietmar Eggemann Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux@arm.linux.org.uk, Greg Kroah-Hartman , Juri Lelli , Vincent Guittot , Peter Zijlstra , Morten Rasmussen , "Rafael J . Wysocki" , Sudeep Holla Subject: Re: [PATCH v4 02/10] cpufreq: provide default frequency-invariance setter function Message-ID: <20170919183917.GC2792@ubuntu> References: <20170825143206.30467-1-dietmar.eggemann@arm.com> <20170825143206.30467-3-dietmar.eggemann@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170825143206.30467-3-dietmar.eggemann@arm.com> 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 25-08-17, 15:31, Dietmar Eggemann wrote: > Frequency-invariant accounting support based on the ratio of current > frequency and maximum supported frequency is an optional feature an arch > can implement. > > Since there are cpufreq drivers (e.g. cpufreq-dt) which can be build for > different arch's a default implementation of the frequency-invariance > setter function arch_set_freq_scale() is needed. > > This default implementation is an empty weak function which will be > overwritten by a strong function in case the arch provides one. > > The setter function passes the cpumask of related (to the frequency > change) cpus (online and offline cpus), the (new) current frequency and > the maximum supported frequency. > > Cc: Rafael J. Wysocki > Cc: Viresh Kumar > Signed-off-by: Dietmar Eggemann > --- > drivers/cpufreq/cpufreq.c | 6 ++++++ > include/linux/cpufreq.h | 3 +++ > 2 files changed, 9 insertions(+) Acked-by: Viresh Kumar -- viresh