lkml.org 
[lkml]   [2018]   [Jul]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: include architecture Kconfig files from top-level Kconfig v3
On Fri, Jul 27, 2018 at 10:32:19AM +0900, Masahiro Yamada wrote:
> This will just add a new unmet dependency warning.
> CONFIG_PREEMPT_COUNT will be still selected.

True. I guess we simply need to prohibit CONFIG_DEBUG_ATOMIC_SLEEP
explicitly if PREEMPT_COUNT isn't supported. E.g something like this:

diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 26d3ff7e3cf4..373ce9fecd7e 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -1195,6 +1195,7 @@ config DEBUG_ATOMIC_SLEEP
bool "Sleep inside atomic section checking"
select PREEMPT_COUNT
depends on DEBUG_KERNEL
+ depends on !ARCH_NO_PREEMPT
help
If you say Y here, various routines which may sleep will become very
noisy if they are called inside atomic sections: when a spinlock is
\
 
 \ /
  Last update: 2018-07-27 09:46    [W:0.064 / U:7.140 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site