• Paul E. McKenney's avatar
    rcu: Apply for_each_rcu_flavor() to increment_cpu_stall_ticks() · 115f7a7c
    Paul E. McKenney authored
    The increment_cpu_stall_ticks() function listed each RCU flavor
    explicitly, with an ifdef to handle preemptible RCU.  This commit
    therefore applies for_each_rcu_flavor() to save a line of code.
    
    Because this commit switches from a code-based enumeration of the
    flavors of RCU to an rcu_state-list-based enumeration, it is no longer
    possible to apply __get_cpu_var() to the per-CPU rcu_data structures.
    We instead use __this_cpu_var() on the rcu_state structure's ->rda field
    that references the corresponding rcu_data structures.
    Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.vnet.ibm.com>
    115f7a7c
rcutree_plugin.h 66.2 KB