]> git.baikalelectronics.ru Git - kernel.git/commit
rcu: create rcu_my_thread_group_empty() wrapper
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 6 May 2010 16:28:41 +0000 (09:28 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 6 May 2010 16:28:41 +0000 (09:28 -0700)
commit9b2ed36737fda5baf85bc7210efcd37b02413191
treea5b3cad55179fe8340c6422deaf6e11120222ad1
parent04cc988fa577a6422f3311874b170cb93e19977a
rcu: create rcu_my_thread_group_empty() wrapper

Some RCU-lockdep splat repairs need to know whether they are running
in a single-threaded process.  Unfortunately, the thread_group_empty()
primitive is defined in sched.h, and can induce #include hell.  This
commit therefore introduces a rcu_my_thread_group_empty() wrapper that
is defined in rcupdate.c, thus avoiding the need to include sched.h
everywhere.

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