Skip to content

Commit

Permalink
cpufreq: Drop redundant check from cpufreq_update_current_freq()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Rafael J. Wysocki committed Jul 4, 2016
1 parent 5d1191a commit 8d540ea
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/cpufreq/cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -1544,9 +1544,6 @@ static unsigned int cpufreq_update_current_freq(struct cpufreq_policy *policy)
{
unsigned int new_freq;

if (cpufreq_suspended)
return 0;

new_freq = cpufreq_driver->get(policy->cpu);
if (!new_freq)
return 0;
Expand Down

0 comments on commit 8d540ea

Please sign in to comment.