Re: [PATCH 1/11] cpufreq: Clean up default and fallback governor setup

From: Viresh Kumar
Date: Thu Feb 04 2016 - 00:03:27 EST


On 04-02-16, 00:14, Rafael J. Wysocki wrote:
> From: Rafael J. Wysocki <rafael.j.wysocki@xxxxxxxxx>
>
> The preprocessor magic used for setting the default cpufreq governor
> (and for using the performance governor as a fallback one for that
> matter) is really nasty, so replace it with __weak functions and
> overrides.
>
> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@xxxxxxxxx>
> ---
> drivers/cpufreq/cpufreq.c | 37 ++++++++++++++++++---------------
> drivers/cpufreq/cpufreq_conservative.c | 10 +++++---
> drivers/cpufreq/cpufreq_ondemand.c | 34 ++++++++++++++++--------------
> drivers/cpufreq/cpufreq_performance.c | 18 ++++++++++++----
> drivers/cpufreq/cpufreq_powersave.c | 10 +++++---
> drivers/cpufreq/cpufreq_userspace.c | 10 +++++---
> include/linux/cpufreq.h | 25 +---------------------
> 7 files changed, 73 insertions(+), 71 deletions(-)

Acked-by: Viresh Kumar <viresh.kumar@xxxxxxxxxx>

--
viresh