diff options
author | Paul E. McKenney <paulmck@linux.ibm.com> | 2018-11-07 06:13:54 +0300 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.ibm.com> | 2019-01-26 02:28:22 +0300 |
commit | b290ebcf7bc4638b38c413f192963f4b74e45b7b (patch) | |
tree | a72f26a8450bedfd9a2dac09ea0e63b0791708f9 /kernel/sched/cpufreq.c | |
parent | 337e9b07db3b8c7f7d68b849df32f434a1a3b831 (diff) | |
download | linux-b290ebcf7bc4638b38c413f192963f4b74e45b7b.tar.xz |
sched: 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(), in fact, synchronize_sched()
is now completely equivalent to synchronize_rcu(). This commit
therefore replaces synchronize_sched() with synchronize_rcu() so that
synchronize_sched() can eventually be removed entirely.
Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Diffstat (limited to 'kernel/sched/cpufreq.c')
-rw-r--r-- | kernel/sched/cpufreq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/sched/cpufreq.c b/kernel/sched/cpufreq.c index 22bd8980f32f..835671f0f917 100644 --- a/kernel/sched/cpufreq.c +++ b/kernel/sched/cpufreq.c @@ -48,8 +48,8 @@ EXPORT_SYMBOL_GPL(cpufreq_add_update_util_hook); * * Clear the update_util_data pointer for the given CPU. * - * Callers must use RCU-sched callbacks to free any memory that might be - * accessed via the old update_util_data pointer or invoke synchronize_sched() + * Callers must use RCU callbacks to free any memory that might be + * accessed via the old update_util_data pointer or invoke synchronize_rcu() * right after this function to avoid use-after-free. */ void cpufreq_remove_update_util_hook(int cpu) |