diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2010-05-06 09:28:41 -0700 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2010-05-06 09:28:41 -0700 |
commit | ee84b8243b07c33a5c8aed42b4b2da60cb16d1d2 (patch) | |
tree | a5b3cad55179fe8340c6422deaf6e11120222ad1 /include | |
parent | ad4ba375373937817404fd92239ef4cadbded23b (diff) | |
download | linux-stable-ee84b8243b07c33a5c8aed42b4b2da60cb16d1d2.tar.gz linux-stable-ee84b8243b07c33a5c8aed42b4b2da60cb16d1d2.tar.bz2 linux-stable-ee84b8243b07c33a5c8aed42b4b2da60cb16d1d2.zip |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/rcupdate.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/rcupdate.h b/include/linux/rcupdate.h index 07db2feb8572..db266bbed23f 100644 --- a/include/linux/rcupdate.h +++ b/include/linux/rcupdate.h @@ -190,6 +190,8 @@ static inline int rcu_read_lock_sched_held(void) #ifdef CONFIG_PROVE_RCU +extern int rcu_my_thread_group_empty(void); + /** * rcu_dereference_check - rcu_dereference with debug checking * @p: The pointer to read, prior to dereferencing |