]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: Remove the weakly defined cpufreq_default_governor()
authorViresh Kumar <viresh.kumar@linaro.org>
Mon, 29 Jun 2020 10:04:40 +0000 (15:34 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 2 Jul 2020 11:03:31 +0000 (13:03 +0200)
commit2a8a128cb0db001b79513d130d8a09355d836026
tree5546159d40347a8c8febe6f9be8136c61e1dc593
parentd6f8adfa3dccead7014eb78d8913f534198829c3
cpufreq: Remove the weakly defined cpufreq_default_governor()

The default cpufreq governor is chosen with the help of a "choice"
option in the Kconfig which will always end up selecting one of
the governors and so the weakly defined definition of
cpufreq_default_governor() will never get called.

Moreover, this makes us skip the checking of the return value of
that routine as it will always be non NULL.

If the Kconfig option changes in future, then we will start getting
a link error instead (and it won't go unnoticed as in the case of the
weak definition).

Suggested-by: Quentin Perret <qperret@google.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cpufreq.c