]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] Deprecate synchronize_kernel, GPL replacement
authorPaul E. McKenney <paulmck@us.ibm.com>
Sun, 1 May 2005 15:59:04 +0000 (08:59 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sun, 1 May 2005 15:59:04 +0000 (08:59 -0700)
commit1bfb5384c96e5a8705209f0a2c06bf74837c3fef
tree3cd2ba33b22fc2812f714f86ea52c68704f8e2c3
parent259dd4b7d6bd38407506d04627d1cef31573c4c1
[PATCH] Deprecate synchronize_kernel, GPL replacement

The synchronize_kernel() primitive is used for quite a few different purposes:
waiting for RCU readers, waiting for NMIs, waiting for interrupts, and so on.
This makes RCU code harder to read, since synchronize_kernel() might or might
not have matching rcu_read_lock()s.  This patch creates a new
synchronize_rcu() that is to be used for RCU readers and a new
synchronize_sched() that is used for the rest.  These two new primitives
currently have the same implementation, but this is might well change with
additional real-time support.  Both new primitives are GPL-only, the old
primitive is deprecated.

Signed-off-by: Paul E. McKenney <paulmck@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/rcupdate.h
kernel/rcupdate.c