aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq/cpufreq.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-06-27 21:31:02 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-07-04 07:22:35 -0400
commit8d540ea79211dd272403ed79b2033bbded19ac42 (patch)
tree4d9ef8d3b71c009404d08b8151789e6a0465957a /drivers/cpufreq/cpufreq.c
parent5d1191ab6cd82b1347eb1b023a3b1eb36ae74ec9 (diff)
cpufreq: Drop redundant check from cpufreq_update_current_freq()
Both callers of cpufreq_update_current_freq(), cpufreq_update_policy() and cpufreq_start_governor(), check cpufreq_suspended before calling that function, so drop the redundant cpufreq_suspended check from it. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'drivers/cpufreq/cpufreq.c')
-rw-r--r--drivers/cpufreq/cpufreq.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c
index 5918e954bb5d..118b4f30a406 100644
--- a/drivers/cpufreq/cpufreq.c
+++ b/drivers/cpufreq/cpufreq.c
@@ -1544,9 +1544,6 @@ static unsigned int cpufreq_update_current_freq(struct cpufreq_policy *policy)
1544{ 1544{
1545 unsigned int new_freq; 1545 unsigned int new_freq;
1546 1546
1547 if (cpufreq_suspended)
1548 return 0;
1549
1550 new_freq = cpufreq_driver->get(policy->cpu); 1547 new_freq = cpufreq_driver->get(policy->cpu);
1551 if (!new_freq) 1548 if (!new_freq)
1552 return 0; 1549 return 0;