diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2011-05-30 23:38:55 -0400 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2011-06-14 18:25:15 -0400 |
commit | 9a432736904d386cda28b987b38ba14dae960ecc (patch) | |
tree | 20294203f9c6132d79737e9ab54c746546afe7d4 /kernel/rcutree_plugin.h | |
parent | 59c5f46fbe01a00eedf54a23789634438bb80603 (diff) |
rcu: Simplify curing of load woes
Make the functions creating the kthreads wake them up. Leverage the
fact that the per-node and boost kthreads can run anywhere, thus
dispensing with the need to wake them up once the incoming CPU has
gone fully online.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Tested-by: Daniel J Blueman <daniel.blueman@gmail.com>
Diffstat (limited to 'kernel/rcutree_plugin.h')
-rw-r--r-- | kernel/rcutree_plugin.h | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/kernel/rcutree_plugin.h b/kernel/rcutree_plugin.h index c8bff3099a89..ea2e2fb79e81 100644 --- a/kernel/rcutree_plugin.h +++ b/kernel/rcutree_plugin.h | |||
@@ -1299,15 +1299,10 @@ static int __cpuinit rcu_spawn_one_boost_kthread(struct rcu_state *rsp, | |||
1299 | raw_spin_unlock_irqrestore(&rnp->lock, flags); | 1299 | raw_spin_unlock_irqrestore(&rnp->lock, flags); |
1300 | sp.sched_priority = RCU_KTHREAD_PRIO; | 1300 | sp.sched_priority = RCU_KTHREAD_PRIO; |
1301 | sched_setscheduler_nocheck(t, SCHED_FIFO, &sp); | 1301 | sched_setscheduler_nocheck(t, SCHED_FIFO, &sp); |
1302 | wake_up_process(t); /* get to TASK_INTERRUPTIBLE quickly. */ | ||
1302 | return 0; | 1303 | return 0; |
1303 | } | 1304 | } |
1304 | 1305 | ||
1305 | static void __cpuinit rcu_wake_one_boost_kthread(struct rcu_node *rnp) | ||
1306 | { | ||
1307 | if (rnp->boost_kthread_task) | ||
1308 | wake_up_process(rnp->boost_kthread_task); | ||
1309 | } | ||
1310 | |||
1311 | #else /* #ifdef CONFIG_RCU_BOOST */ | 1306 | #else /* #ifdef CONFIG_RCU_BOOST */ |
1312 | 1307 | ||
1313 | static void rcu_initiate_boost(struct rcu_node *rnp, unsigned long flags) | 1308 | static void rcu_initiate_boost(struct rcu_node *rnp, unsigned long flags) |
@@ -1331,10 +1326,6 @@ static int __cpuinit rcu_spawn_one_boost_kthread(struct rcu_state *rsp, | |||
1331 | return 0; | 1326 | return 0; |
1332 | } | 1327 | } |
1333 | 1328 | ||
1334 | static void __cpuinit rcu_wake_one_boost_kthread(struct rcu_node *rnp) | ||
1335 | { | ||
1336 | } | ||
1337 | |||
1338 | #endif /* #else #ifdef CONFIG_RCU_BOOST */ | 1329 | #endif /* #else #ifdef CONFIG_RCU_BOOST */ |
1339 | 1330 | ||
1340 | #ifndef CONFIG_SMP | 1331 | #ifndef CONFIG_SMP |