]> git.baikalelectronics.ru Git - kernel.git/commitdiff
tracing: Refactor TRACE_IRQFLAGS_SUPPORT in Kconfig
authorMasahiro Yamada <masahiroy@kernel.org>
Sat, 31 Jul 2021 05:22:32 +0000 (14:22 +0900)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Mon, 16 Aug 2021 15:37:21 +0000 (11:37 -0400)
Make architectures select TRACE_IRQFLAGS_SUPPORT instead of
having many defines.

Link: https://lkml.kernel.org/r/20210731052233.4703-2-masahiroy@kernel.org
Acked-by: Heiko Carstens <hca@linux.ibm.com>
Acked-by: Vineet Gupta <vgupta@synopsys.com>   #arch/arc
Acked-by: Michael Ellerman <mpe@ellerman.id.au> (powerpc)
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
27 files changed:
arch/Kconfig
arch/arc/Kconfig
arch/arm/Kconfig
arch/arm64/Kconfig
arch/csky/Kconfig
arch/hexagon/Kconfig
arch/microblaze/Kconfig
arch/microblaze/Kconfig.debug
arch/mips/Kconfig
arch/mips/Kconfig.debug
arch/nds32/Kconfig
arch/nios2/Kconfig
arch/openrisc/Kconfig
arch/parisc/Kconfig
arch/parisc/Kconfig.debug
arch/powerpc/Kconfig
arch/riscv/Kconfig
arch/s390/Kconfig
arch/s390/Kconfig.debug
arch/sh/Kconfig
arch/sh/Kconfig.debug
arch/sparc/Kconfig
arch/sparc/Kconfig.debug
arch/um/Kconfig
arch/x86/Kconfig
arch/x86/Kconfig.debug
arch/xtensa/Kconfig

index 129df498a8e12c5d6e7da2ac14f9da3811e3d827..9471a0feecafdb44f647a05e692f59f4f394e6f0 100644 (file)
@@ -197,6 +197,9 @@ config HAVE_FUNCTION_ERROR_INJECTION
 config HAVE_NMI
        bool
 
+config TRACE_IRQFLAGS_SUPPORT
+       bool
+
 #
 # An arch should select this if it provides all these things:
 #
index d8f51eb8963bb13ae53b609903d51bb0e0cf9f83..0c81df3a5c7a02a6994c25ef16be12aba930a69b 100644 (file)
@@ -49,9 +49,7 @@ config ARC
        select PERF_USE_VMALLOC if ARC_CACHE_VIPT_ALIASING
        select HAVE_ARCH_JUMP_LABEL if ISA_ARCV2 && !CPU_ENDIAN_BE32
        select SET_FS
-
-config TRACE_IRQFLAGS_SUPPORT
-       def_bool y
+       select TRACE_IRQFLAGS_SUPPORT
 
 config LOCKDEP_SUPPORT
        def_bool y
index 82f908fa5676ac15069f3eff22e3b227d60bdc9f..3564647283e13c3b5b57e807cb35d99d3eda1764 100644 (file)
@@ -128,6 +128,7 @@ config ARM
        select RTC_LIB
        select SET_FS
        select SYS_SUPPORTS_APM_EMULATION
+       select TRACE_IRQFLAGS_SUPPORT if !CPU_V7M
        # Above selects are sorted alphabetically; please add new ones
        # according to that.  Thanks.
        help
@@ -191,10 +192,6 @@ config LOCKDEP_SUPPORT
        bool
        default y
 
-config TRACE_IRQFLAGS_SUPPORT
-       bool
-       default !CPU_V7M
-
 config ARCH_HAS_ILOG2_U32
        bool
 
index b5b13a932561fc0bbf2fda570aa8b1dfa1d57b3a..67b04ae5d01041e67ba39c09f754d3d74adf1927 100644 (file)
@@ -221,6 +221,7 @@ config ARM64
        select SYSCTL_EXCEPTION_TRACE
        select THREAD_INFO_IN_TASK
        select HAVE_ARCH_USERFAULTFD_MINOR if USERFAULTFD
+       select TRACE_IRQFLAGS_SUPPORT
        help
          ARM 64-bit (AArch64) Linux support.
 
@@ -288,9 +289,6 @@ config ILLEGAL_POINTER_VALUE
 config LOCKDEP_SUPPORT
        def_bool y
 
-config TRACE_IRQFLAGS_SUPPORT
-       def_bool y
-
 config GENERIC_BUG
        def_bool y
        depends on BUG
index 2716f6395ba708c9cb350101d9de0523d1e76532..9d4d898df76ba717e7808afc4209e0cc20c4dafc 100644 (file)
@@ -82,6 +82,7 @@ config CSKY
        select PCI_SYSCALL if PCI
        select PCI_MSI if PCI
        select SET_FS
+       select TRACE_IRQFLAGS_SUPPORT
 
 config LOCKDEP_SUPPORT
        def_bool y
@@ -139,9 +140,6 @@ config STACKTRACE_SUPPORT
 config TIME_LOW_RES
        def_bool y
 
-config TRACE_IRQFLAGS_SUPPORT
-       def_bool y
-
 config CPU_TLB_SIZE
        int
        default "128"   if (CPU_CK610 || CPU_CK807 || CPU_CK810)
index e5a852080730fb1804fcdd4b498e3052bdaeef76..f993c4deaf23e83870b2099e9bf512450d0f8b33 100644 (file)
@@ -31,6 +31,7 @@ config HEXAGON
        select GENERIC_CPU_DEVICES
        select SET_FS
        select ARCH_WANT_LD_ORPHAN_WARN
+       select TRACE_IRQFLAGS_SUPPORT
        help
          Qualcomm Hexagon is a processor architecture designed for high
          performance and low power across a wide variety of applications.
@@ -52,9 +53,6 @@ config EARLY_PRINTK
 config MMU
        def_bool y
 
-config TRACE_IRQFLAGS_SUPPORT
-       def_bool y
-
 config GENERIC_CSUM
        def_bool y
 
index 14a67a42fcae8862aaeff8a2c9f7d6e4826dde53..59798e43cdb03436d5415ae9874aceaa7e5e5fb8 100644 (file)
@@ -44,6 +44,7 @@ config MICROBLAZE
        select SPARSE_IRQ
        select SET_FS
        select ZONE_DMA
+       select TRACE_IRQFLAGS_SUPPORT
 
 # Endianness selection
 choice
index 865527ac332a90e751f71607df058d389468ecb0..a4e40e534e6a84db241abfe5076962a90f8a71bd 100644 (file)
@@ -1,6 +1 @@
 # SPDX-License-Identifier: GPL-2.0-only
-# For a description of the syntax of this configuration file,
-# see Documentation/kbuild/kconfig-language.rst.
-
-config TRACE_IRQFLAGS_SUPPORT
-       def_bool y
index cee6087cd686bde1e9d7c39de27dc07aa781d183..3017c9e8bb07fe533c6df2f908aac5c60c851b96 100644 (file)
@@ -97,6 +97,7 @@ config MIPS
        select PCI_MSI_ARCH_FALLBACKS if PCI_MSI
        select RTC_LIB
        select SYSCTL_EXCEPTION_TRACE
+       select TRACE_IRQFLAGS_SUPPORT
        select VIRT_TO_BUS
        select ARCH_HAS_ELFCORE_COMPAT
 
index 43dbf5930796f0281b9ed5ebe9a6f5f7a479501d..f4ae7900fcd350f5b94b68a1e26c830943f6ff69 100644 (file)
@@ -1,9 +1,5 @@
 # SPDX-License-Identifier: GPL-2.0
 
-config TRACE_IRQFLAGS_SUPPORT
-       bool
-       default y
-
 config EARLY_PRINTK
        bool "Early printk" if EXPERT
        depends on SYS_HAS_EARLY_PRINTK
index 62313902d75d9e80a8f5c69959b12993b878e9a0..dd50123335d81ae3898ab27b5c32333354e0978a 100644 (file)
@@ -48,6 +48,7 @@ config NDS32
        select HAVE_FTRACE_MCOUNT_RECORD
        select HAVE_DYNAMIC_FTRACE
        select SET_FS
+       select TRACE_IRQFLAGS_SUPPORT
        help
          Andes(nds32) Linux support.
 
@@ -64,9 +65,6 @@ config GENERIC_LOCKBREAK
        def_bool y
        depends on PREEMPTION
 
-config TRACE_IRQFLAGS_SUPPORT
-       def_bool y
-
 config STACKTRACE_SUPPORT
        def_bool y
 
index c24955c81c9274e8293bea3006e1a66a2cde3816..eabdc41f67f69f929db070d8ddac33a7036deb42 100644 (file)
@@ -43,9 +43,6 @@ config NO_IOPORT_MAP
 config FPU
        def_bool n
 
-config TRACE_IRQFLAGS_SUPPORT
-       def_bool n
-
 menu "Kernel features"
 
 source "kernel/Kconfig.hz"
index 591acc5990dc598c785bc01800cb3902f2d70de5..ebc5e7eafc5c93410a4150843bb5fee9e1ae7e9d 100644 (file)
@@ -39,6 +39,7 @@ config OPENRISC
        select GENERIC_IRQ_MULTI_HANDLER
        select MMU_GATHER_NO_RANGE if MMU
        select SET_FS
+       select TRACE_IRQFLAGS_SUPPORT
 
 config CPU_BIG_ENDIAN
        def_bool y
@@ -52,9 +53,6 @@ config GENERIC_HWEIGHT
 config NO_IOPORT_MAP
        def_bool y
 
-config TRACE_IRQFLAGS_SUPPORT
-       def_bool y
-
 # For now, use generic checksum functions
 #These can be reimplemented in assembly later if so inclined
 config GENERIC_CSUM
index bde9907bc5b25f91851266b6be92832937cb3f94..57a0d0896ef6b85aa5a5393f0c0d86a327f295c4 100644 (file)
@@ -67,6 +67,7 @@ config PARISC
        select HAVE_DYNAMIC_FTRACE_WITH_REGS
        select HAVE_SOFTIRQ_ON_OWN_STACK if IRQSTACKS
        select SET_FS
+       select TRACE_IRQFLAGS_SUPPORT
 
        help
          The PA-RISC microprocessor is designed by Hewlett-Packard and used
index 1478ded0e24725b7d711c2ebaa6290ee0f1cb07e..f66554cd5c4518cf919abf321ce9137e8b2be59d 100644 (file)
@@ -1,4 +1 @@
 # SPDX-License-Identifier: GPL-2.0
-
-config TRACE_IRQFLAGS_SUPPORT
-       def_bool y
index d01e3401581d63f5a842150d8bb3cc434bd94971..76a28452c042807b038ba8c13a46d95aaef6982d 100644 (file)
@@ -94,10 +94,6 @@ config STACKTRACE_SUPPORT
        bool
        default y
 
-config TRACE_IRQFLAGS_SUPPORT
-       bool
-       default y
-
 config LOCKDEP_SUPPORT
        bool
        default y
@@ -271,6 +267,7 @@ config PPC
        select STRICT_KERNEL_RWX if STRICT_MODULE_RWX
        select SYSCTL_EXCEPTION_TRACE
        select THREAD_INFO_IN_TASK
+       select TRACE_IRQFLAGS_SUPPORT
        select VIRT_TO_BUS                      if !PPC64
        #
        # Please keep this list sorted alphabetically.
index 8fcceb8eda076a96bda8f3bff7a8f87820ee72a6..15f012b9c6d7370d40c588d64113f37f8f0f336e 100644 (file)
@@ -109,6 +109,7 @@ config RISCV
        select SPARSE_IRQ
        select SYSCTL_EXCEPTION_TRACE
        select THREAD_INFO_IN_TASK
+       select TRACE_IRQFLAGS_SUPPORT
        select UACCESS_MEMCPY if !MMU
        select ZONE_DMA32 if 64BIT
 
@@ -178,9 +179,6 @@ config ARCH_SUPPORTS_UPROBES
 config STACKTRACE_SUPPORT
        def_bool y
 
-config TRACE_IRQFLAGS_SUPPORT
-       def_bool y
-
 config GENERIC_BUG
        def_bool y
        depends on BUG
index a0e2130f0100ca4ad8420d6cfbc826d724716517..8bce206e93a35e20999513824ac4de3790363a88 100644 (file)
@@ -207,6 +207,7 @@ config S390
        select SWIOTLB
        select SYSCTL_EXCEPTION_TRACE
        select THREAD_INFO_IN_TASK
+       select TRACE_IRQFLAGS_SUPPORT
        select TTY
        select VIRT_CPU_ACCOUNTING
        select ZONE_DMA
index 9ea6e61d58581a49af564089ac2f768757687a27..e94a2a7f6bf448baa314b16ca838bdce32aec969 100644 (file)
@@ -1,8 +1,5 @@
 # SPDX-License-Identifier: GPL-2.0
 
-config TRACE_IRQFLAGS_SUPPORT
-       def_bool y
-
 config EARLY_PRINTK
        def_bool y
 
index 45a0549421cd0b4197fa328c04b72174690416dc..8efeffcdf4cfbfc7186ca9e6ef9c4b45d7f775e1 100644 (file)
@@ -72,6 +72,7 @@ config SUPERH
        select RTC_LIB
        select SET_FS
        select SPARSE_IRQ
+       select TRACE_IRQFLAGS_SUPPORT
        help
          The SuperH is a RISC processor targeted for use in embedded systems
          and consumer electronics; it was also used in the Sega Dreamcast
index 28a43d63bde1f57670303bed5097db20ebd06827..958f790273ab9be93e0eb859d127af58f1eef7c0 100644 (file)
@@ -1,8 +1,5 @@
 # SPDX-License-Identifier: GPL-2.0
 
-config TRACE_IRQFLAGS_SUPPORT
-       def_bool y
-
 config SH_STANDARD_BIOS
        bool "Use LinuxSH standard BIOS"
        help
index c5fa7932b550b69d0476fda8e000d8c8a1caeaa6..fb8bdd40c72aeb53034b18eb85be560d33e0285f 100644 (file)
@@ -50,6 +50,7 @@ config SPARC
        select NEED_DMA_MAP_STATE
        select NEED_SG_DMA_LENGTH
        select SET_FS
+       select TRACE_IRQFLAGS_SUPPORT
 
 config SPARC32
        def_bool !64BIT
index 50a918d496c836da796a0da768cd71aa892fd705..6b2bec1888b3ec8a621870f46e55accc54729b95 100644 (file)
@@ -1,9 +1,5 @@
 # SPDX-License-Identifier: GPL-2.0
 
-config TRACE_IRQFLAGS_SUPPORT
-       bool
-       default y
-
 config DEBUG_DCFLUSH
        bool "D-cache flush debugging"
        depends on SPARC64 && DEBUG_KERNEL
index 0561b73cfd9add48e0d3c6eb0f07b9522a1bf23d..0a699440c4c5dd967fec301be1a5cc6136acde6b 100644 (file)
@@ -20,6 +20,7 @@ config UML
        select GENERIC_CPU_DEVICES
        select HAVE_GCC_PLUGINS
        select SET_FS
+       select TRACE_IRQFLAGS_SUPPORT
        select TTY # Needed for line.c
 
 config MMU
@@ -50,10 +51,6 @@ config ISA
 config SBUS
        bool
 
-config TRACE_IRQFLAGS_SUPPORT
-       bool
-       default y
-
 config LOCKDEP_SUPPORT
        bool
        default y
index 49270655e827eed14862c995ab987c2aab61f8e7..171faee05035b0054bd01059868643ebc45acb5d 100644 (file)
@@ -261,6 +261,7 @@ config X86
        select STACK_VALIDATION                 if HAVE_STACK_VALIDATION && (HAVE_STATIC_CALL_INLINE || RETPOLINE)
        select SYSCTL_EXCEPTION_TRACE
        select THREAD_INFO_IN_TASK
+       select TRACE_IRQFLAGS_SUPPORT
        select USER_STACKTRACE_SUPPORT
        select VIRT_TO_BUS
        select HAVE_ARCH_KCSAN                  if X86_64
index 80b57e7f49477126d6adbd9e230d413b4e8a2bae..d3a6f74a94bdf29d15b9ef1db95927fae29d668c 100644 (file)
@@ -1,8 +1,5 @@
 # SPDX-License-Identifier: GPL-2.0
 
-config TRACE_IRQFLAGS_SUPPORT
-       def_bool y
-
 config TRACE_IRQFLAGS_NMI_SUPPORT
        def_bool y
 
index 2332b21569938cee49c4681a8e37ae2188d10908..90aabb27f7d71d677fb7b2fae972b239c5c91e87 100644 (file)
@@ -41,6 +41,7 @@ config XTENSA
        select MODULES_USE_ELF_RELA
        select PERF_USE_VMALLOC
        select SET_FS
+       select TRACE_IRQFLAGS_SUPPORT
        select VIRT_TO_BUS
        help
          Xtensa processors are 32-bit RISC machines designed by Tensilica
@@ -72,9 +73,6 @@ config LOCKDEP_SUPPORT
 config STACKTRACE_SUPPORT
        def_bool y
 
-config TRACE_IRQFLAGS_SUPPORT
-       def_bool y
-
 config MMU
        def_bool n