Skip to content

Commit 1e81d3e

Browse files
Tang Yizhourafaeljw
authored andcommitted
cpufreq: Fix a comment in cpufreq_policy_free
Make the comment in blocking_notifier_call_chain() easier to understand. Signed-off-by: Tang Yizhou <[email protected]> Acked-by: Viresh Kumar <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 2c1b5a8 commit 1e81d3e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

drivers/cpufreq/cpufreq.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1295,8 +1295,9 @@ static void cpufreq_policy_free(struct cpufreq_policy *policy)
12951295

12961296
if (policy->max_freq_req) {
12971297
/*
1298-
* CPUFREQ_CREATE_POLICY notification is sent only after
1299-
* successfully adding max_freq_req request.
1298+
* Remove max_freq_req after sending CPUFREQ_REMOVE_POLICY
1299+
* notification, since CPUFREQ_CREATE_POLICY notification was
1300+
* sent after adding max_freq_req earlier.
13001301
*/
13011302
blocking_notifier_call_chain(&cpufreq_policy_notifier_list,
13021303
CPUFREQ_REMOVE_POLICY, policy);

0 commit comments

Comments
 (0)