]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
config: Adding the new config parameter CONFIG_PROVE_LOCKING_SMALL for sparc
authorBabu Moger <babu.moger@oracle.com>
Tue, 27 Sep 2016 17:05:34 +0000 (10:05 -0700)
committerShannon Nelson <shannon.nelson@oracle.com>
Wed, 31 May 2017 23:43:46 +0000 (16:43 -0700)
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 <babu.moger@oracle.com>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
arch/sparc/Kconfig
lib/Kconfig.debug

index df72da87b3e6d6315cd777a40dddf7f7abd7c154..3501032868035ff1ed0ae76693cd70397f99b0b5 100644 (file)
@@ -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
index af7bec643ae41bda50b7f84773abada21e5b8ea2..5b689acfa1d6c7402f6688f367d5bba38ba999a5 100644 (file)
@@ -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