summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLai Jiangshan <laijs@cn.fujitsu.com>2010-03-28 11:15:20 +0800
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2010-05-10 11:08:31 -0700
commitf261414f0d56dd1a0e34888e27d1d4902ad052f3 (patch)
tree6779e82e0a520121a8d1b86fbfb248bef3ab201a
parentd25eb9442bb2c38c1e742f0fa764d7132d72593f (diff)
downloadlinux-stable-f261414f0d56dd1a0e34888e27d1d4902ad052f3.tar.gz
linux-stable-f261414f0d56dd1a0e34888e27d1d4902ad052f3.tar.bz2
linux-stable-f261414f0d56dd1a0e34888e27d1d4902ad052f3.zip
rcu: make dead code really dead
cleanup: make dead code really dead Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
-rw-r--r--kernel/rcutree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/rcutree.c b/kernel/rcutree.c
index e54c12351227..6042fb859535 100644
--- a/kernel/rcutree.c
+++ b/kernel/rcutree.c
@@ -1236,11 +1236,11 @@ static void force_quiescent_state(struct rcu_state *rsp, int relaxed)
break; /* grace period idle or initializing, ignore. */
case RCU_SAVE_DYNTICK:
-
- raw_spin_unlock(&rnp->lock); /* irqs remain disabled */
if (RCU_SIGNAL_INIT != RCU_SAVE_DYNTICK)
break; /* So gcc recognizes the dead code. */
+ raw_spin_unlock(&rnp->lock); /* irqs remain disabled */
+
/* Record dyntick-idle state. */
force_qs_rnp(rsp, dyntick_save_progress_counter);
raw_spin_lock(&rnp->lock); /* irqs already disabled */