diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2009-09-28 10:46:32 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-10-05 15:02:02 -0400 |
commit | 3d76c082907e8f83c5d5c4572f38d53ad8f00c4b (patch) | |
tree | a39c3d3ea17dc085195626487f37995beb742ac0 /kernel/rcutree.c | |
parent | 162cc2794df37662beb7f97ddd1dd5bffaf85e9a (diff) |
rcu: Clean up code based on review feedback from Josh Triplett, part 3
Whitespace fixes, updated comments, and trivial code movement.
o Fix whitespace error in RCU_HEAD_INIT()
o Move "So where is rcu_write_lock()" comment so that it does
not come between the rcu_read_unlock() header comment and
the rcu_read_unlock() definition.
o Move the module_param statements for blimit, qhimark, and
qlowmark to immediately follow the corresponding
definitions.
o In __rcu_offline_cpu(), move the assignment to rdp_me
inside the "if" statement, given that rdp_me is not used
outside of that "if" statement.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: laijs@cn.fujitsu.com
Cc: dipankar@in.ibm.com
Cc: akpm@linux-foundation.org
Cc: mathieu.desnoyers@polymtl.ca
Cc: josh@joshtriplett.org
Cc: dvhltc@us.ibm.com
Cc: niv@us.ibm.com
Cc: peterz@infradead.org
Cc: rostedt@goodmis.org
Cc: Valdis.Kletnieks@vt.edu
Cc: dhowells@redhat.com
LKML-Reference: <12541491931164-git-send-email->
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/rcutree.c')
-rw-r--r-- | kernel/rcutree.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/kernel/rcutree.c b/kernel/rcutree.c index 81af59b8dd88..d5597830faf5 100644 --- a/kernel/rcutree.c +++ b/kernel/rcutree.c | |||
@@ -122,6 +122,10 @@ static int blimit = 10; /* Maximum callbacks per softirq. */ | |||
122 | static int qhimark = 10000; /* If this many pending, ignore blimit. */ | 122 | static int qhimark = 10000; /* If this many pending, ignore blimit. */ |
123 | static int qlowmark = 100; /* Once only this many pending, use blimit. */ | 123 | static int qlowmark = 100; /* Once only this many pending, use blimit. */ |
124 | 124 | ||
125 | module_param(blimit, int, 0); | ||
126 | module_param(qhimark, int, 0); | ||
127 | module_param(qlowmark, int, 0); | ||
128 | |||
125 | static void force_quiescent_state(struct rcu_state *rsp, int relaxed); | 129 | static void force_quiescent_state(struct rcu_state *rsp, int relaxed); |
126 | static int rcu_pending(int cpu); | 130 | static int rcu_pending(int cpu); |
127 | 131 | ||
@@ -878,8 +882,8 @@ static void __rcu_offline_cpu(int cpu, struct rcu_state *rsp) | |||
878 | * indefinitely delay callbacks, you have far worse things to | 882 | * indefinitely delay callbacks, you have far worse things to |
879 | * be worrying about. | 883 | * be worrying about. |
880 | */ | 884 | */ |
881 | rdp_me = rsp->rda[smp_processor_id()]; | ||
882 | if (rdp->nxtlist != NULL) { | 885 | if (rdp->nxtlist != NULL) { |
886 | rdp_me = rsp->rda[smp_processor_id()]; | ||
883 | *rdp_me->nxttail[RCU_NEXT_TAIL] = rdp->nxtlist; | 887 | *rdp_me->nxttail[RCU_NEXT_TAIL] = rdp->nxtlist; |
884 | rdp_me->nxttail[RCU_NEXT_TAIL] = rdp->nxttail[RCU_NEXT_TAIL]; | 888 | rdp_me->nxttail[RCU_NEXT_TAIL] = rdp->nxttail[RCU_NEXT_TAIL]; |
885 | rdp->nxtlist = NULL; | 889 | rdp->nxtlist = NULL; |
@@ -1575,7 +1579,3 @@ void __init __rcu_init(void) | |||
1575 | } | 1579 | } |
1576 | 1580 | ||
1577 | #include "rcutree_plugin.h" | 1581 | #include "rcutree_plugin.h" |
1578 | |||
1579 | module_param(blimit, int, 0); | ||
1580 | module_param(qhimark, int, 0); | ||
1581 | module_param(qlowmark, int, 0); | ||