]> git.karo-electronics.de Git - linux-beck.git/commit
rcu: Tell the compiler that rcu_state_p is immutable
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 4 Mar 2015 15:39:27 +0000 (07:39 -0800)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 27 May 2015 19:57:59 +0000 (12:57 -0700)
commitb28a7c016618e5e32e0703e3dd111dbba02715ff
tree87f1d54c122911059cfac2b1933ea07b62d6a7de
parent727b705baf7d091a9bc5494d7f1d9699b6932531
rcu: Tell the compiler that rcu_state_p is immutable

This commit adds a "const" tag to the declarations of rcu_state_p,
which should allow the compiler to generate better code and also to
catch erroneous assignments to this variable.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/rcu/tree.c
kernel/rcu/tree_plugin.h