提交 d6344d4b 编写于 作者: R Rafael J. Wysocki

cpufreq: Simplify cpufreq_can_do_remote_dvfs()

The if () in cpufreq_can_do_remote_dvfs() is superfluous, so drop
it and simply return the value of the expression under it.
Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: NViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
上级 99d14d0e
...@@ -578,11 +578,8 @@ static inline bool cpufreq_can_do_remote_dvfs(struct cpufreq_policy *policy) ...@@ -578,11 +578,8 @@ static inline bool cpufreq_can_do_remote_dvfs(struct cpufreq_policy *policy)
* - dvfs_possible_from_any_cpu flag is set * - dvfs_possible_from_any_cpu flag is set
* - the local and remote CPUs share cpufreq policy * - the local and remote CPUs share cpufreq policy
*/ */
if (policy->dvfs_possible_from_any_cpu || return policy->dvfs_possible_from_any_cpu ||
cpumask_test_cpu(smp_processor_id(), policy->cpus)) cpumask_test_cpu(smp_processor_id(), policy->cpus);
return true;
return false;
} }
/********************************************************************* /*********************************************************************
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册