lkml.org 
[lkml]   [2010]   [May]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH tip/core/rcu 03/48] rcu: make dead code really dead
    Date
    From: Lai Jiangshan <laijs@cn.fujitsu.com>

    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>
    ---
    kernel/rcutree.c | 4 ++--
    1 files changed, 2 insertions(+), 2 deletions(-)

    diff --git a/kernel/rcutree.c b/kernel/rcutree.c
    index e54c123..6042fb8 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 */
    --
    1.7.0


    \
     
     \ /
      Last update: 2010-05-04 22:23    [W:0.032 / U:64.548 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site