Skip to content
  • Paul E. McKenney's avatar
    rcu: Account for nocb-CPU callback counts in RCU CPU stall warnings · 903ee83d
    Paul E. McKenney authored
    
    
    The RCU CPU stall warnings print an estimate of the total number of
    RCU callbacks queued in the system, but this estimate leaves out
    the callbacks queued for nocbs CPUs.  This commit therefore introduces
    rcu_get_n_cbs_cpu(), which gives an accurate callback estimate for
    both nocbs and normal CPUs, and uses this new function as needed.
    
    This commit also introduces a rcu_get_n_cbs_nocb_cpu() helper function
    that returns the number of callbacks for nocbs CPUs or zero otherwise,
    and also uses this function in place of direct access to ->nocb_q_count
    while in the area (fewer characters, you see).
    
    Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.ibm.com>
    903ee83d