diff options
author | Paul E. McKenney <paul.mckenney@linaro.org> | 2012-12-03 11:16:28 -0500 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2013-03-26 11:04:48 -0400 |
commit | a488985851cf2facd2227bd982cc2c251df56268 (patch) | |
tree | 450d84d1fc01bd7997b651e47d2587fac5c6f085 /kernel/rcutree_plugin.h | |
parent | 09c7b890622d72b5e004cc249bbe610e8b928ddf (diff) |
rcu: Distinguish "rcuo" kthreads by RCU flavor
Currently, the per-no-CBs-CPU kthreads are named "rcuo" followed by
the CPU number, for example, "rcuo". This is problematic given that
there are either two or three RCU flavors, each of which gets a per-CPU
kthread with exactly the same name. This commit therefore introduces
a one-letter abbreviation for each RCU flavor, namely 'b' for RCU-bh,
'p' for RCU-preempt, and 's' for RCU-sched. This abbreviation is used
to distinguish the "rcuo" kthreads, for example, for CPU 0 we would have
"rcuob/0", "rcuop/0", and "rcuos/0".
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Tested-by: Dietmar Eggemann <dietmar.eggemann@arm.com>
Diffstat (limited to 'kernel/rcutree_plugin.h')
-rw-r--r-- | kernel/rcutree_plugin.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/rcutree_plugin.h b/kernel/rcutree_plugin.h index e32236e83dda..c0164441ab92 100644 --- a/kernel/rcutree_plugin.h +++ b/kernel/rcutree_plugin.h | |||
@@ -111,7 +111,7 @@ static void __init rcu_bootup_announce_oddness(void) | |||
111 | #ifdef CONFIG_TREE_PREEMPT_RCU | 111 | #ifdef CONFIG_TREE_PREEMPT_RCU |
112 | 112 | ||
113 | struct rcu_state rcu_preempt_state = | 113 | struct rcu_state rcu_preempt_state = |
114 | RCU_STATE_INITIALIZER(rcu_preempt, call_rcu); | 114 | RCU_STATE_INITIALIZER(rcu_preempt, 'p', call_rcu); |
115 | DEFINE_PER_CPU(struct rcu_data, rcu_preempt_data); | 115 | DEFINE_PER_CPU(struct rcu_data, rcu_preempt_data); |
116 | static struct rcu_state *rcu_state = &rcu_preempt_state; | 116 | static struct rcu_state *rcu_state = &rcu_preempt_state; |
117 | 117 | ||
@@ -2517,7 +2517,8 @@ static void __init rcu_spawn_nocb_kthreads(struct rcu_state *rsp) | |||
2517 | return; | 2517 | return; |
2518 | for_each_cpu(cpu, rcu_nocb_mask) { | 2518 | for_each_cpu(cpu, rcu_nocb_mask) { |
2519 | rdp = per_cpu_ptr(rsp->rda, cpu); | 2519 | rdp = per_cpu_ptr(rsp->rda, cpu); |
2520 | t = kthread_run(rcu_nocb_kthread, rdp, "rcuo%d", cpu); | 2520 | t = kthread_run(rcu_nocb_kthread, rdp, |
2521 | "rcuo%c/%d", rsp->abbr, cpu); | ||
2521 | BUG_ON(IS_ERR(t)); | 2522 | BUG_ON(IS_ERR(t)); |
2522 | ACCESS_ONCE(rdp->nocb_kthread) = t; | 2523 | ACCESS_ONCE(rdp->nocb_kthread) = t; |
2523 | } | 2524 | } |