mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
cpufreq/intel_pstate: 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 <[email protected]> Cc: Srinivas Pandruvada <[email protected]> Cc: Len Brown <[email protected]> Cc: "Rafael J. Wysocki" <[email protected]> Cc: Viresh Kumar <[email protected]> Cc: <[email protected]>
This commit is contained in:
parent
d05faa5f1a
commit
09659af308
1 changed files with 1 additions and 1 deletions
|
|
@ -1930,7 +1930,7 @@ static void intel_pstate_clear_update_util_hook(unsigned int cpu)
|
|||
|
||||
cpufreq_remove_update_util_hook(cpu);
|
||||
cpu_data->update_util_set = false;
|
||||
synchronize_sched();
|
||||
synchronize_rcu();
|
||||
}
|
||||
|
||||
static int intel_pstate_get_max_freq(struct cpudata *cpu)
|
||||
|
|
|
|||
Loading…
Reference in a new issue