Skip to content

Commit ad6b5b7

Browse files
terminusfbq
authored andcommitted
rcu: fix header guard for rcu_all_qs()
rcu_all_qs() is defined for !CONFIG_PREEMPT_RCU but the declaration is conditioned on CONFIG_PREEMPTION. With CONFIG_PREEMPT_LAZY, CONFIG_PREEMPTION=y does not imply CONFIG_PREEMPT_RCU=y. Decouple the two. Cc: Paul E. McKenney <paulmck@kernel.org> Reviewed-by: Frederic Weisbecker <frederic@kernel.org> Reviewed-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Ankur Arora <ankur.a.arora@oracle.com> Signed-off-by: Paul E. McKenney <paulmck@kernel.org> Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
1 parent 2014c95 commit ad6b5b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/rcutree.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ extern int rcu_scheduler_active;
103103
void rcu_end_inkernel_boot(void);
104104
bool rcu_inkernel_boot_has_ended(void);
105105
bool rcu_is_watching(void);
106-
#ifndef CONFIG_PREEMPTION
106+
#ifndef CONFIG_PREEMPT_RCU
107107
void rcu_all_qs(void);
108108
#endif
109109

0 commit comments

Comments
 (0)