Skip to content

Commit 5bb28a5

Browse files
sravnborgdavem330
authored andcommitted
sparc: unify Kconfig.debug
Let sparc and sparc64 use the same Kconfig.debug Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 293666b commit 5bb28a5

File tree

3 files changed

+27
-45
lines changed

3 files changed

+27
-45
lines changed

arch/sparc/Kconfig.debug

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,30 @@ config DEBUG_STACK_USAGE
1515

1616
This option will slow down process creation somewhat.
1717

18+
config DEBUG_DCFLUSH
19+
bool "D-cache flush debugging"
20+
depends on SPARC64 && DEBUG_KERNEL
21+
22+
config STACK_DEBUG
23+
bool "Stack Overflow Detection Support"
24+
25+
config DEBUG_PAGEALLOC
26+
bool "Debug page memory allocations"
27+
depends on SPARC64 && DEBUG_KERNEL && !HIBERNATION
28+
help
29+
Unmap pages from the kernel linear mapping after free_pages().
30+
This results in a large slowdown, but helps to find certain types
31+
of memory corruptions.
32+
33+
config MCOUNT
34+
bool
35+
depends on SPARC64
36+
depends on STACK_DEBUG || FUNCTION_TRACER
37+
default y
38+
39+
config FRAME_POINTER
40+
bool
41+
depends on MCOUNT
42+
default y
43+
1844
endmenu

arch/sparc64/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ source "drivers/sbus/char/Kconfig"
424424

425425
source "fs/Kconfig"
426426

427-
source "arch/sparc64/Kconfig.debug"
427+
source "arch/sparc/Kconfig.debug"
428428

429429
source "security/Kconfig"
430430

arch/sparc64/Kconfig.debug

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)