cpufreq/cpufreq_governor: Replace synchronize_sched() with synchronize_rcu()
authorPaul E. McKenney <paulmck@linux.ibm.com>
Tue, 6 Nov 2018 01:23:56 +0000 (17:23 -0800)
committerPaul E. McKenney <paulmck@linux.ibm.com>
Tue, 27 Nov 2018 17:21:38 +0000 (09:21 -0800)
Now that synchronize_rcu() waits for preempt-disable regions of code
as well as RCU read-side critical sections, synchronize_sched() can be
replaced by synchronize_rcu().  This commit therefore makes this change.

Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com>
drivers/cpufreq/cpufreq_governor.c

index 6d53f7d..ffa9ade 100644 (file)
@@ -346,7 +346,7 @@ static inline void gov_clear_update_util(struct cpufreq_policy *policy)
        for_each_cpu(i, policy->cpus)
                cpufreq_remove_update_util_hook(i);
 
        for_each_cpu(i, policy->cpus)
                cpufreq_remove_update_util_hook(i);
 
-       synchronize_sched();
+       synchronize_rcu();
 }
 
 static struct policy_dbs_info *alloc_policy_dbs_info(struct cpufreq_policy *policy,
 }
 
 static struct policy_dbs_info *alloc_policy_dbs_info(struct cpufreq_policy *policy,