• P
    rcu: Allow RCU CPU stall warnings to be off at boot, but manually enablable · 910b1b7e
    Paul E. McKenney 提交于
    Currently, if RCU CPU stall warnings are enabled, they are enabled
    immediately upon boot.  They can be manually disabled via /sys (and
    also re-enabled via /sys), and are automatically disabled upon panic.
    However, some users need RCU CPU stalls to be disabled at boot time,
    but to be enabled without rebuilding/rebooting.  For example, someone
    running a real-time application in production might not want the
    additional latency of RCU CPU stall detection in normal operation, but
    might need to enable it at any point for fault isolation purposes.
    
    This commit therefore provides a new CONFIG_RCU_CPU_STALL_DETECTOR_RUNNABLE
    kernel configuration parameter that maintains the current behavior
    (enable at boot) by default, but allows a kernel to be configured
    with RCU CPU stall detection built into the kernel, but disabled at
    boot time.
    Requested-by: NClark Williams <williams@redhat.com>
    Requested-by: NJohn Kacur <jkacur@redhat.com>
    Signed-off-by: NPaul E. McKenney <paulmck@linux.vnet.ibm.com>
    910b1b7e
rcutree.c 57.0 KB