lkml.org 
[lkml]   [2015]   [Jan]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH tip/core/rcu 10/10] rcu: Initialize tiny RCU stall-warning timeouts at boot
    Date
    From: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>

    The current tiny RCU stall-warning code assumes that the jiffies counter
    starts at zero, however, it is sometimes initialized to other values,
    for example, -30,000. This commit therefore changes rcu_init() to
    invoke reset_cpu_stall_ticks() for both flavors of RCU to initialize
    the stall-warning times properly at boot.

    Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
    ---
    kernel/rcu/tiny.c | 2 ++
    1 file changed, 2 insertions(+)

    diff --git a/kernel/rcu/tiny.c b/kernel/rcu/tiny.c
    index 0db5649f8817..fc0f2c07af3a 100644
    --- a/kernel/rcu/tiny.c
    +++ b/kernel/rcu/tiny.c
    @@ -383,6 +383,8 @@ EXPORT_SYMBOL_GPL(call_rcu_bh);
    void __init rcu_init(void)
    {
    open_softirq(RCU_SOFTIRQ, rcu_process_callbacks);
    + RCU_TRACE(reset_cpu_stall_ticks(&rcu_sched_ctrlblk));
    + RCU_TRACE(reset_cpu_stall_ticks(&rcu_bh_ctrlblk));

    rcu_early_boot_tests();
    }
    --
    1.8.1.5


    \
     
     \ /
      Last update: 2015-01-07 19:21    [W:4.988 / U:0.172 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site