summaryrefslogtreecommitdiffstats
path: root/include/linux/rcupdate.h
diff options
context:
space:
mode:
authorPaul E. McKenney2010-03-30 19:59:28 +0200
committerPaul E. McKenney2010-05-10 20:08:32 +0200
commit32c141a0a1dfa29e0a07d78bec0c0919fc4b9f88 (patch)
treee85572d2d80f750ca8487e75fd63b9895c5c5db5 /include/linux/rcupdate.h
parentrcu: Fix bogus CONFIG_PROVE_LOCKING in comments to reflect reality. (diff)
downloadkernel-qcow2-linux-32c141a0a1dfa29e0a07d78bec0c0919fc4b9f88.tar.gz
kernel-qcow2-linux-32c141a0a1dfa29e0a07d78bec0c0919fc4b9f88.tar.xz
kernel-qcow2-linux-32c141a0a1dfa29e0a07d78bec0c0919fc4b9f88.zip
rcu: fix now-bogus rcu_scheduler_active comments.
The rcu_scheduler_active check has been wrapped into the new debug_lockdep_rcu_enabled() function, so update the comments to reflect this new reality. Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'include/linux/rcupdate.h')
-rw-r--r--include/linux/rcupdate.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/rcupdate.h b/include/linux/rcupdate.h
index a150af0e5cd5..02537a72aaa4 100644
--- a/include/linux/rcupdate.h
+++ b/include/linux/rcupdate.h
@@ -111,7 +111,8 @@ extern int debug_lockdep_rcu_enabled(void);
* this assumes we are in an RCU read-side critical section unless it can
* prove otherwise.
*
- * Check rcu_scheduler_active to prevent false positives during boot.
+ * Check debug_lockdep_rcu_enabled() to prevent false positives during boot
+ * and while lockdep is disabled.
*/
static inline int rcu_read_lock_held(void)
{
@@ -136,7 +137,8 @@ extern int rcu_read_lock_bh_held(void);
* of preemption (including disabling irqs) counts as an RCU-sched
* read-side critical section.
*
- * Check rcu_scheduler_active to prevent false positives during boot.
+ * Check debug_lockdep_rcu_enabled() to prevent false positives during boot
+ * and while lockdep is disabled.
*/
#ifdef CONFIG_PREEMPT
static inline int rcu_read_lock_sched_held(void)