]> git.karo-electronics.de Git - karo-tx-linux.git/commit
rcu: Apply for_each_rcu_flavor() to increment_cpu_stall_ticks()
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Fri, 10 Aug 2012 20:55:03 +0000 (13:55 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 4 Sep 2012 23:36:52 +0000 (16:36 -0700)
commitc9c842b03e404c57760640e2b27de9e3177412fb
treeead622bf606212b77799920a6d7ca0263df76619
parent8f65777171a698aaaa16f94c7ad0798738aeb913
rcu: Apply for_each_rcu_flavor() to increment_cpu_stall_ticks()

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: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/rcutree_plugin.h