]> git.baikalelectronics.ru Git - kernel.git/commit
rcu: Remove typecheck() from RCU locking wrapper functions
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 11 May 2017 22:33:23 +0000 (15:33 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Fri, 9 Jun 2017 01:52:40 +0000 (18:52 -0700)
commit51cd81827578010b63024a3a3dbf735a1ab428d2
tree8ac0858e9d8f945cca18d4fefaef8ae11b74aa46
parent89d9b9646bb08f32f650c559a537c6bc35213209
rcu: Remove typecheck() from RCU locking wrapper functions

Because raw_spin_lock_irqsave() and raw_spin_unlock_irqrestore()
both do typecheck() on their flags argument, there is no point in
duplicating this check in raw_spin_lock_irqsave_rcu_node() and
raw_spin_unlock_irqrestore_rcu_node().  This commit therefore saves
a few lines by removing this duplicated check.

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