From: Babu Moger Date: Tue, 27 Sep 2016 17:05:34 +0000 (-0700) Subject: config: Adding the new config parameter CONFIG_PROVE_LOCKING_SMALL for sparc X-Git-Tag: v4.1.12-102.0.20170530_1700~34 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=26888e8faca46dc0e9255c0a9d47003944422fda;p=users%2Fjedix%2Flinux-maple.git config: Adding the new config parameter CONFIG_PROVE_LOCKING_SMALL for sparc This new config parameter limits the space used for "Lock debugging: prove locking correctness" by about 4MB. The current sparc systems have the limitation of 32MB size for kernel size including .text, .data and .bss sections. With PROVE_LOCKING feature, the kernel size could grow beyond this limit and causing system boot-up issues. With this option, kernel limits the size of the entries of lock_chains, stack_trace etc. so that kernel fits in required size limit. This is not visible to user and only used for sparc. Orabug: 24736954 Signed-off-by: Babu Moger Acked-by: Sam Ravnborg --- diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig index df72da87b3e6d..3501032868035 100644 --- a/arch/sparc/Kconfig +++ b/arch/sparc/Kconfig @@ -43,6 +43,7 @@ config SPARC select ODD_RT_SIGACTION select OLD_SIGSUSPEND select ARCH_HAS_SG_CHAIN + select PROVE_LOCKING_SMALL if PROVE_LOCKING config SPARC32 def_bool !64BIT diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index af7bec643ae41..5b689acfa1d6c 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -1008,6 +1008,9 @@ config PROVE_LOCKING For more details, see Documentation/locking/lockdep-design.txt. +config PROVE_LOCKING_SMALL + bool + config LOCKDEP bool depends on DEBUG_KERNEL && TRACE_IRQFLAGS_SUPPORT && STACKTRACE_SUPPORT && LOCKDEP_SUPPORT