Commit 1e81d3e0 authored by Tang Yizhou's avatar Tang Yizhou Committed by Rafael J. Wysocki

cpufreq: Fix a comment in cpufreq_policy_free

Make the comment in blocking_notifier_call_chain() easier to
understand.
Signed-off-by: default avatarTang Yizhou <tangyizhou@huawei.com>
Acked-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 2c1b5a84
...@@ -1295,8 +1295,9 @@ static void cpufreq_policy_free(struct cpufreq_policy *policy) ...@@ -1295,8 +1295,9 @@ static void cpufreq_policy_free(struct cpufreq_policy *policy)
if (policy->max_freq_req) { if (policy->max_freq_req) {
/* /*
* CPUFREQ_CREATE_POLICY notification is sent only after * Remove max_freq_req after sending CPUFREQ_REMOVE_POLICY
* successfully adding max_freq_req request. * notification, since CPUFREQ_CREATE_POLICY notification was
* sent after adding max_freq_req earlier.
*/ */
blocking_notifier_call_chain(&cpufreq_policy_notifier_list, blocking_notifier_call_chain(&cpufreq_policy_notifier_list,
CPUFREQ_REMOVE_POLICY, policy); CPUFREQ_REMOVE_POLICY, policy);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment