rcu: Move RCU CPU stall-warning code out of update.c
authorPaul E. McKenney <paulmck@linux.ibm.com>
Sat, 12 Jan 2019 00:10:57 +0000 (16:10 -0800)
committerPaul E. McKenney <paulmck@linux.ibm.com>
Tue, 26 Mar 2019 21:40:13 +0000 (14:40 -0700)
commit10462d6f58fb6dbde7563e9343505d98d5bfba3d
tree9b8ade352a6fbcb11fa19dd49eb6c8f563ac32d8
parent9e98c678c2d6ae3a17cb2de55d17f69dddaa231b
rcu: Move RCU CPU stall-warning code out of update.c

The RCU CPU stall-warning code for normal grace periods is currently
scattered across three files, due to earlier Tiny RCU support for RCU
CPU stall warnings and for old Kconfig options that have long since
been retired.  Given that it is hard for the lead RCU maintainer to
find relevant stall-warning code, it would be good to consolidate it.
This commit starts this process by moving stall-warning code from
kernel/rcu/update.c to a new kernel/rcu/tree_stall.h file.

Note that the definitions of rcu_cpu_stall_suppress and
rcu_cpu_stall_timeout must remain in kernel/rcu/update.h to provide
compatibility for kernel boot parameter lists.

Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com>
kernel/rcu/rcu.h
kernel/rcu/tree.c
kernel/rcu/tree_stall.h [new file with mode: 0644]
kernel/rcu/update.c