From: Viresh Kumar <viresh.kumar@linaro.org>
To: Dietmar Eggemann <dietmar.eggemann@arm.com>
Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org,
linux@arm.linux.org.uk,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Russell King <rmk+kernel@armlinux.org.uk>,
Catalin Marinas <catalin.marinas@arm.com>,
Will Deacon <will.deacon@arm.com>,
Juri Lelli <juri.lelli@arm.com>,
Vincent Guittot <vincent.guittot@linaro.org>,
Peter Zijlstra <peterz@infradead.org>,
Morten Rasmussen <morten.rasmussen@arm.com>,
"Rafael J . Wysocki" <rjw@rjwysocki.net>,
Sudeep Holla <sudeep.holla@arm.com>
Subject: Re: [PATCH v3 02/10] cpufreq: provide default frequency-invariance setter function
Date: Fri, 28 Jul 2017 13:00:36 +0530 [thread overview]
Message-ID: <20170728073036.GZ352@vireshk-i7> (raw)
In-Reply-To: <20170727193312.9849-3-dietmar.eggemann@arm.com>
On 27-07-17, 20:33, Dietmar Eggemann wrote:
> diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c
> index 9bf97a366029..04e2f7e4964e 100644
> --- a/drivers/cpufreq/cpufreq.c
> +++ b/drivers/cpufreq/cpufreq.c
> @@ -2404,6 +2404,17 @@ int cpufreq_boost_enabled(void)
> EXPORT_SYMBOL_GPL(cpufreq_boost_enabled);
>
> /*********************************************************************
> + * FREQUENCY INVARIANT ACCOUNTING SUPPORT *
> + *********************************************************************/
We don't need another of these fancy headers :)
Just add below routine somewhere at the top, maybe before
cpufreq_generic_init().
> +
> +__weak void arch_set_freq_scale(struct cpumask *cpus,
> + unsigned long cur_freq,
> + unsigned long max_freq)
> +{
> +}
> +EXPORT_SYMBOL_GPL(arch_set_freq_scale);
> +
> +/*********************************************************************
> * REGISTER / UNREGISTER CPUFREQ DRIVER *
> *********************************************************************/
> static enum cpuhp_state hp_online;
> diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h
> index f10a9b3761cd..e38acc1a4d47 100644
> --- a/include/linux/cpufreq.h
> +++ b/include/linux/cpufreq.h
> @@ -899,6 +899,9 @@ static inline bool policy_has_boost_freq(struct cpufreq_policy *policy)
>
> extern unsigned int arch_freq_get_on_cpu(int cpu);
>
> +extern void arch_set_freq_scale(struct cpumask *cpus, unsigned long cur_freq,
> + unsigned long max_freq);
> +
> /* the following are really really optional */
> extern struct freq_attr cpufreq_freq_attr_scaling_available_freqs;
> extern struct freq_attr cpufreq_freq_attr_scaling_boost_freqs;
> --
> 2.11.0
--
viresh
next prev parent reply other threads:[~2017-07-28 7:30 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-27 19:33 [PATCH v3 00/10] arm, arm64, cpufreq: frequency- and cpu-invariant accounting support for task scheduler Dietmar Eggemann
2017-07-27 19:33 ` [PATCH v3 01/10] drivers base/arch_topology: free cpumask cpus_to_visit Dietmar Eggemann
2017-07-28 7:21 ` Viresh Kumar
2017-08-01 10:56 ` Juri Lelli
2017-07-27 19:33 ` [PATCH v3 02/10] cpufreq: provide default frequency-invariance setter function Dietmar Eggemann
2017-07-28 7:30 ` Viresh Kumar [this message]
2017-08-02 12:55 ` Dietmar Eggemann
2017-07-27 19:33 ` [PATCH v3 03/10] cpufreq: arm_big_little: invoke " Dietmar Eggemann
2017-07-28 8:25 ` Viresh Kumar
2017-07-27 19:33 ` [PATCH v3 04/10] cpufreq: dt: " Dietmar Eggemann
2017-07-28 8:25 ` Viresh Kumar
2017-07-27 19:33 ` [PATCH v3 05/10] drivers base/arch_topology: provide frequency-invariant accounting support Dietmar Eggemann
2017-07-28 8:26 ` Viresh Kumar
2017-07-27 19:33 ` [PATCH v3 06/10] drivers base/arch_topology: allow inlining cpu-invariant " Dietmar Eggemann
2017-07-28 8:27 ` Viresh Kumar
2017-07-27 19:33 ` [PATCH v3 07/10] arm: wire frequency-invariant accounting support up to the task scheduler Dietmar Eggemann
2017-08-14 13:16 ` Russell King - ARM Linux
2017-07-27 19:33 ` [PATCH v3 08/10] arm: wire cpu-invariant " Dietmar Eggemann
2017-08-14 13:16 ` Russell King - ARM Linux
2017-07-27 19:33 ` [PATCH v3 09/10] arm64: wire frequency-invariant " Dietmar Eggemann
2017-07-27 19:33 ` [PATCH v3 10/10] arm64: wire cpu-invariant " Dietmar Eggemann
2017-08-02 13:04 ` [PATCH v3 00/10] arm, arm64, cpufreq: frequency- and cpu-invariant accounting support for " Dietmar Eggemann
2017-08-04 17:38 ` Dietmar Eggemann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170728073036.GZ352@vireshk-i7 \
--to=viresh.kumar@linaro.org \
--cc=catalin.marinas@arm.com \
--cc=dietmar.eggemann@arm.com \
--cc=gregkh@linuxfoundation.org \
--cc=juri.lelli@arm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=morten.rasmussen@arm.com \
--cc=peterz@infradead.org \
--cc=rjw@rjwysocki.net \
--cc=rmk+kernel@armlinux.org.uk \
--cc=sudeep.holla@arm.com \
--cc=vincent.guittot@linaro.org \
--cc=will.deacon@arm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).