diff mbox

lib/Kconfig: make PREEMPT_COUNT depend on PREEMPT in DEBUG_ATOMIC_SLEEP

Message ID 1455300862-453-1-git-send-email-yang.shi@linaro.org
State New
Headers show

Commit Message

Yang Shi Feb. 12, 2016, 6:14 p.m. UTC
When building non-preempt kernel (PREEMPT_NONE), PREEMPT_COUNT is still enabled
if DEBUG_ATOMIC_SLEEP is enabled. But, it sounds not make sense to have
PREEMPT_COUNT set in non-preempt kernel.

So, make PREEMPT_COUNT depend on PREEMPT here.

Signed-off-by: Yang Shi <yang.shi@linaro.org>

---
 lib/Kconfig.debug | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.0.2
diff mbox

Patch

diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index ecb9e75..a5b6e11 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -1075,7 +1075,7 @@  config DEBUG_LOCKDEP
 
 config DEBUG_ATOMIC_SLEEP
 	bool "Sleep inside atomic section checking"
-	select PREEMPT_COUNT
+	select PREEMPT_COUNT if PREEMPT
 	depends on DEBUG_KERNEL
 	help
 	  If you say Y here, various routines which may sleep will become very