Skip to content

Commit 630181c

Browse files
committed
rcu: Initialize tiny RCU stall-warning timeouts at boot
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>
1 parent ec1fe39 commit 630181c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎kernel/rcu/tiny.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,8 @@ EXPORT_SYMBOL_GPL(call_rcu_bh);
383383
void __init rcu_init(void)
384384
{
385385
open_softirq(RCU_SOFTIRQ, rcu_process_callbacks);
386+
RCU_TRACE(reset_cpu_stall_ticks(&rcu_sched_ctrlblk));
387+
RCU_TRACE(reset_cpu_stall_ticks(&rcu_bh_ctrlblk));
386388

387389
rcu_early_boot_tests();
388390
}

0 commit comments

Comments
 (0)