projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bcc6156
)
cpufreq: Remove redundant !setpolicy check
author
Viresh Kumar
<viresh.kumar@linaro.org>
Thu, 20 Jun 2019 03:05:46 +0000
(08:35 +0530)
committer
Rafael J. Wysocki
<rafael.j.wysocki@intel.com>
Wed, 26 Jun 2019 09:36:55 +0000
(11:36 +0200)
cpufreq_start_governor() is only called for !setpolicy case, checking it
again is not required.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cpufreq.c
patch
|
blob
|
history
diff --git
a/drivers/cpufreq/cpufreq.c
b/drivers/cpufreq/cpufreq.c
index
aee024e
..
8caec52
100644
(file)
--- a/
drivers/cpufreq/cpufreq.c
+++ b/
drivers/cpufreq/cpufreq.c
@@
-2151,7
+2151,7
@@
static int cpufreq_start_governor(struct cpufreq_policy *policy)
pr_debug("%s: for CPU %u\n", __func__, policy->cpu);
- if (cpufreq_driver->get
&& !cpufreq_driver->setpolicy
)
+ if (cpufreq_driver->get)
cpufreq_update_current_freq(policy);
if (policy->governor->start) {