aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);
111 * this assumes we are in an RCU read-side critical section unless it can 111 * this assumes we are in an RCU read-side critical section unless it can
112 * prove otherwise. 112 * prove otherwise.
113 * 113 *
114 * Check rcu_scheduler_active to prevent false positives during boot. 114 * Check debug_lockdep_rcu_enabled() to prevent false positives during boot
115 * and while lockdep is disabled.
115 */ 116 */
116static inline int rcu_read_lock_held(void) 117static inline int rcu_read_lock_held(void)
117{ 118{
@@ -136,7 +137,8 @@ extern int rcu_read_lock_bh_held(void);
136 * of preemption (including disabling irqs) counts as an RCU-sched 137 * of preemption (including disabling irqs) counts as an RCU-sched
137 * read-side critical section. 138 * read-side critical section.
138 * 139 *
139 * Check rcu_scheduler_active to prevent false positives during boot. 140 * Check debug_lockdep_rcu_enabled() to prevent false positives during boot
141 * and while lockdep is disabled.
140 */ 142 */
141#ifdef CONFIG_PREEMPT 143#ifdef CONFIG_PREEMPT
142static inline int rcu_read_lock_sched_held(void) 144static inline int rcu_read_lock_sched_held(void)