Kconfig: remove HAVE_LATENCYTOP_SUPPORT
Subsystems (11)
PATCH 1/1 Kconfig: remove HAVE_LATENCYTOP_SUPPORT
As illustrated by a3afe70b83fd ("[S390] latencytop s390 support."), HAVE_LATENCYTOP_SUPPORT is defined by an architecture to advertise an implementation of save_stack_trace_tsk.
However, as of 9212ddb5eada ("stacktrace: provide save_stack_trace_tsk() weak alias") a dummy implementation is provided if STACKTRACE=y. Given that LATENCYTOP already depends on STACKTRACE_SUPPORT and selects STACKTRACE, we can remove HAVE_LATENCYTOP_SUPPORT altogether.
--- arch/arc/Kconfig | 3 --- arch/arm/Kconfig | 5 ----- arch/metag/Kconfig | 3 --- arch/microblaze/Kconfig | 3 --- arch/parisc/Kconfig | 3 --- arch/powerpc/Kconfig | 3 --- arch/s390/Kconfig | 3 --- arch/sh/Kconfig | 3 --- arch/sparc/Kconfig | 4 ---- arch/unicore32/Kconfig | 3 --- arch/x86/Kconfig | 3 --- lib/Kconfig.debug | 1 - 12 files changed, 37 deletions(-)
arch/arc/Kconfig +0 -3
@@ -73,9 +73,6 @@ config STACKTRACE_SUPPORT def_bool y select STACKTRACE -config HAVE_LATENCYTOP_SUPPORT - def_bool y - config HAVE_ARCH_TRANSPARENT_HUGEPAGE def_bool y depends on ARC_MMU_V4
arch/arm/Kconfig +0 -5
@@ -162,11 +162,6 @@ config STACKTRACE_SUPPORT bool default y -config HAVE_LATENCYTOP_SUPPORT - bool - depends on !SMP - default y - config LOCKDEP_SUPPORT bool default y
arch/metag/Kconfig +0 -3
@@ -36,9 +36,6 @@ config STACKTRACE_SUPPORT config LOCKDEP_SUPPORT def_bool y -config HAVE_LATENCYTOP_SUPPORT - def_bool y - config RWSEM_GENERIC_SPINLOCK def_bool y
arch/microblaze/Kconfig +0 -3
@@ -67,9 +67,6 @@ config STACKTRACE_SUPPORT config LOCKDEP_SUPPORT def_bool y -config HAVE_LATENCYTOP_SUPPORT - def_bool y - source "init/Kconfig" source "kernel/Kconfig.freezer"
arch/parisc/Kconfig +0 -3
@@ -79,9 +79,6 @@ config TIME_LOW_RES depends on SMP default y -config HAVE_LATENCYTOP_SUPPORT - def_bool y - # unless you want to implement ACPI on PA-RISC ... ;-) config PM bool
arch/powerpc/Kconfig +0 -3
@@ -47,9 +47,6 @@ config STACKTRACE_SUPPORT bool default y -config HAVE_LATENCYTOP_SUPPORT - def_bool y - config TRACE_IRQFLAGS_SUPPORT bool default y
arch/s390/Kconfig +0 -3
@@ -10,9 +10,6 @@ config LOCKDEP_SUPPORT config STACKTRACE_SUPPORT def_bool y -config HAVE_LATENCYTOP_SUPPORT - def_bool y - config RWSEM_GENERIC_SPINLOCK bool
arch/sh/Kconfig +0 -3
@@ -130,9 +130,6 @@ config STACKTRACE_SUPPORT config LOCKDEP_SUPPORT def_bool y -config HAVE_LATENCYTOP_SUPPORT - def_bool y - config ARCH_HAS_ILOG2_U32 def_bool n
arch/sparc/Kconfig +0 -4
@@ -101,10 +101,6 @@ config LOCKDEP_SUPPORT bool default y if SPARC64 -config HAVE_LATENCYTOP_SUPPORT - bool - default y if SPARC64 - config ARCH_HIBERNATION_POSSIBLE def_bool y if SPARC64
arch/unicore32/Kconfig +0 -3
@@ -33,9 +33,6 @@ config NO_IOPORT_MAP config STACKTRACE_SUPPORT def_bool y -config HAVE_LATENCYTOP_SUPPORT - def_bool y - config LOCKDEP_SUPPORT def_bool y
arch/x86/Kconfig +0 -3
@@ -177,9 +177,6 @@ config LOCKDEP_SUPPORT config STACKTRACE_SUPPORT def_bool y -config HAVE_LATENCYTOP_SUPPORT - def_bool y - config MMU def_bool y
lib/Kconfig.debug +0 -1
@@ -1556,7 +1556,6 @@ config FAULT_INJECTION_STACKTRACE_FILTER config LATENCYTOP bool "Latency measuring infrastructure" - depends on HAVE_LATENCYTOP_SUPPORT depends on DEBUG_KERNEL depends on STACKTRACE_SUPPORT depends on PROC_FS
Signature · 1 line
2.1.4
Quoted 21 lines · Will Deacon
As illustrated by
a3afe70b83fd("[S390] latencytop s390 support."),HAVE_LATENCYTOP_SUPPORTis defined by an architecture to advertise an implementation ofsave_stack_trace_tsk.However, as of
9212ddb5eada("stacktrace: providesave_stack_trace_tsk()weak alias") a dummy implementation is provided if STACKTRACE=y. Given that LATENCYTOP already depends onSTACKTRACE_SUPPORTand selects STACKTRACE, we can removeHAVE_LATENCYTOP_SUPPORTaltogether.Cc Vineet Gupta <[email protected]>Cc Russell King <[email protected]>Cc James Hogan <[email protected]>Cc Michal Simek <[email protected]>Cc Helge Deller <[email protected]>Cc Michael Ellerman <[email protected]>Cc "David S. Miller" <[email protected]>Cc Guan Xuetao <[email protected]>Cc Ingo Molnar <[email protected]>Cc Andrew Morton <[email protected]>Acked-by Heiko Carstens <[email protected]>Signed-off-by Will Deacon <[email protected]>
Quoted 2 lines
--- arch/powerpc/Kconfig | 3 ---
LGTM.
cheers