diff options
author | Paul E. McKenney <paulmck@linux.ibm.com> | 2018-11-06 21:44:52 -0500 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.ibm.com> | 2018-11-27 12:21:41 -0500 |
commit | 7440172974e85b1828bdd84ac6b23b5bcad9c5eb (patch) | |
tree | 876817c8e09a9f55ffac2ae0fd4ad0d53040100f /kernel/tracepoint.c | |
parent | c93ffc15cceb057924410f9178e679120ee12353 (diff) |
tracing: Replace synchronize_sched() and call_rcu_sched()
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(). Similarly, call_rcu_sched() can be
replaced by call_rcu(). This commit therefore makes these changes.
Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: <linux-kernel@vger.kernel.org>
Acked-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'kernel/tracepoint.c')
-rw-r--r-- | kernel/tracepoint.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/tracepoint.c b/kernel/tracepoint.c index a3be42304485..46f2ab1e08a9 100644 --- a/kernel/tracepoint.c +++ b/kernel/tracepoint.c | |||
@@ -92,7 +92,7 @@ static __init int release_early_probes(void) | |||
92 | while (early_probes) { | 92 | while (early_probes) { |
93 | tmp = early_probes; | 93 | tmp = early_probes; |
94 | early_probes = tmp->next; | 94 | early_probes = tmp->next; |
95 | call_rcu_sched(tmp, rcu_free_old_probes); | 95 | call_rcu(tmp, rcu_free_old_probes); |
96 | } | 96 | } |
97 | 97 | ||
98 | return 0; | 98 | return 0; |
@@ -123,7 +123,7 @@ static inline void release_probes(struct tracepoint_func *old) | |||
123 | * cover both cases. So let us chain the SRCU and sched RCU | 123 | * cover both cases. So let us chain the SRCU and sched RCU |
124 | * callbacks to wait for both grace periods. | 124 | * callbacks to wait for both grace periods. |
125 | */ | 125 | */ |
126 | call_rcu_sched(&tp_probes->rcu, rcu_free_old_probes); | 126 | call_rcu(&tp_probes->rcu, rcu_free_old_probes); |
127 | } | 127 | } |
128 | } | 128 | } |
129 | 129 | ||