diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2015-08-06 19:50:39 -0400 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2015-10-07 19:01:12 -0400 |
commit | 6587a23b6b9bdb47205ec96c703e5bf8a2d39701 (patch) | |
tree | c5ac61d861ea8b1b6e3c4708c1db2f1f551f9b1a /kernel/rcu/tree.h | |
parent | 5b74c458906fc4a62f932ee8bb801d29baf15fec (diff) |
rcu: Switch synchronize_sched_expedited() to IPI
This commit switches synchronize_sched_expedited() from stop_one_cpu_nowait()
to smp_call_function_single(), thus moving from an IPI and a pair of
context switches to an IPI and a single pass through the scheduler.
Of course, if the scheduler actually does decide to switch to a different
task, there will still be a pair of context switches, but there would
likely have been a pair of context switches anyway, just a bit later.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/rcu/tree.h')
-rw-r--r-- | kernel/rcu/tree.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/kernel/rcu/tree.h b/kernel/rcu/tree.h index 3eee48bcf52b..1b969cef8fe4 100644 --- a/kernel/rcu/tree.h +++ b/kernel/rcu/tree.h | |||
@@ -324,9 +324,6 @@ struct rcu_data { | |||
324 | /* ticks this CPU has handled */ | 324 | /* ticks this CPU has handled */ |
325 | /* during and after the last grace */ | 325 | /* during and after the last grace */ |
326 | /* period it is aware of. */ | 326 | /* period it is aware of. */ |
327 | struct cpu_stop_work exp_stop_work; | ||
328 | /* Expedited grace-period control */ | ||
329 | /* for CPU stopping. */ | ||
330 | 327 | ||
331 | /* 2) batch handling */ | 328 | /* 2) batch handling */ |
332 | /* | 329 | /* |