diff options
author | Paul E. McKenney <paulmck@linux.ibm.com> | 2018-11-05 17:23:56 -0800 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.ibm.com> | 2018-11-27 09:21:38 -0800 |
commit | cc69b389fd7bfcd14ade19e302a771f0234e9c85 (patch) | |
tree | bd5a0a37c36df22693dac9e096ac37db798eeb4a | |
parent | 09659af30860789b6f7d1c7dd35a7e829d530db5 (diff) | |
download | linux-cc69b389fd7bfcd14ade19e302a771f0234e9c85.tar.gz linux-cc69b389fd7bfcd14ade19e302a771f0234e9c85.tar.bz2 linux-cc69b389fd7bfcd14ade19e302a771f0234e9c85.zip |
cpufreq/cpufreq_governor: Replace synchronize_sched() with synchronize_rcu()
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>
-rw-r--r-- | drivers/cpufreq/cpufreq_governor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cpufreq/cpufreq_governor.c b/drivers/cpufreq/cpufreq_governor.c index 6d53f7d9fc7a..ffa9adeaba31 100644 --- a/drivers/cpufreq/cpufreq_governor.c +++ b/drivers/cpufreq/cpufreq_governor.c @@ -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); - synchronize_sched(); + synchronize_rcu(); } static struct policy_dbs_info *alloc_policy_dbs_info(struct cpufreq_policy *policy, |