From: Ankur Arora <ankur.a.ar...@oracle.com>

[ Upstream commit ad6b5b73ff565e88aca7a7d1286788d80c97ba71 ]

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 <paul...@kernel.org>
Reviewed-by: Frederic Weisbecker <frede...@kernel.org>
Reviewed-by: Sebastian Andrzej Siewior <bige...@linutronix.de>
Signed-off-by: Ankur Arora <ankur.a.ar...@oracle.com>
Signed-off-by: Paul E. McKenney <paul...@kernel.org>
Signed-off-by: Boqun Feng <boqun.f...@gmail.com>
Signed-off-by: Sasha Levin <sas...@kernel.org>
---
 include/linux/rcutree.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/rcutree.h b/include/linux/rcutree.h
index 126f6b418f6af..559f758bf2eaa 100644
--- a/include/linux/rcutree.h
+++ b/include/linux/rcutree.h
@@ -104,7 +104,7 @@ extern int rcu_scheduler_active;
 void rcu_end_inkernel_boot(void);
 bool rcu_inkernel_boot_has_ended(void);
 bool rcu_is_watching(void);
-#ifndef CONFIG_PREEMPTION
+#ifndef CONFIG_PREEMPT_RCU
 void rcu_all_qs(void);
 #endif
 
-- 
2.39.5


Reply via email to