]> git.baikalelectronics.ru Git - kernel.git/commit
srcu: Simplify __srcu_read_unlock() via this_cpu_dec()
authorLai Jiangshan <laijs@cn.fujitsu.com>
Thu, 29 Nov 2012 08:46:02 +0000 (16:46 +0800)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 7 Feb 2013 23:06:25 +0000 (15:06 -0800)
commit28ec03e8010a6d6159ca8f6e0d845dc36ab6ecf3
tree123d0fa065a35bb7de384edb5e753ec28beee7b0
parent0e0a866f86df963aa5c624b072ceb4035239b4be
srcu: Simplify __srcu_read_unlock() via this_cpu_dec()

This commit replaces disabling of preemption and decrement of a per-CPU
variable with this_cpu_dec(), which avoids preemption disabling on x86
and shortens the code on all platforms.

Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/srcu.c