提交 cc69b389 编写于 作者: P Paul E. McKenney

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: NPaul E. McKenney <paulmck@linux.ibm.com>
上级 09659af3
...@@ -346,7 +346,7 @@ static inline void gov_clear_update_util(struct cpufreq_policy *policy) ...@@ -346,7 +346,7 @@ static inline void gov_clear_update_util(struct cpufreq_policy *policy)
for_each_cpu(i, policy->cpus) for_each_cpu(i, policy->cpus)
cpufreq_remove_update_util_hook(i); 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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册