Revert "overlays: Add Pi 5 version of dwc2"
[platform/kernel/linux-rpi.git] / arch / Kconfig
index 205fd23..12d5149 100644 (file)
@@ -11,28 +11,41 @@ source "arch/$(SRCARCH)/Kconfig"
 
 menu "General architecture-dependent options"
 
-config CRASH_CORE
+config ARCH_HAS_SUBPAGE_FAULTS
        bool
+       help
+         Select if the architecture can check permissions at sub-page
+         granularity (e.g. arm64 MTE). The probe_user_*() functions
+         must be implemented.
 
-config KEXEC_CORE
-       select CRASH_CORE
+config HOTPLUG_SMT
        bool
 
-config KEXEC_ELF
+config SMT_NUM_THREADS_DYNAMIC
        bool
 
-config HAVE_IMA_KEXEC
+# Selected by HOTPLUG_CORE_SYNC_DEAD or HOTPLUG_CORE_SYNC_FULL
+config HOTPLUG_CORE_SYNC
        bool
 
-config ARCH_HAS_SUBPAGE_FAULTS
+# Basic CPU dead synchronization selected by architecture
+config HOTPLUG_CORE_SYNC_DEAD
        bool
-       help
-         Select if the architecture can check permissions at sub-page
-         granularity (e.g. arm64 MTE). The probe_user_*() functions
-         must be implemented.
+       select HOTPLUG_CORE_SYNC
 
-config HOTPLUG_SMT
+# Full CPU synchronization with alive state selected by architecture
+config HOTPLUG_CORE_SYNC_FULL
+       bool
+       select HOTPLUG_CORE_SYNC_DEAD if HOTPLUG_CPU
+       select HOTPLUG_CORE_SYNC
+
+config HOTPLUG_SPLIT_STARTUP
        bool
+       select HOTPLUG_CORE_SYNC_FULL
+
+config HOTPLUG_PARALLEL
+       bool
+       select HOTPLUG_SPLIT_STARTUP
 
 config GENERIC_ENTRY
        bool
@@ -285,6 +298,9 @@ config ARCH_HAS_DMA_SET_UNCACHED
 config ARCH_HAS_DMA_CLEAR_UNCACHED
        bool
 
+config ARCH_HAS_CPU_FINALIZE_INIT
+       bool
+
 # Select if arch init_task must go in the __init_task_data section
 config ARCH_TASK_STRUCT_ON_STACK
        bool
@@ -400,20 +416,14 @@ config HAVE_HARDLOCKUP_DETECTOR_PERF
          The arch chooses to use the generic perf-NMI-based hardlockup
          detector. Must define HAVE_PERF_EVENTS_NMI.
 
-config HAVE_NMI_WATCHDOG
-       depends on HAVE_NMI
-       bool
-       help
-         The arch provides a low level NMI watchdog. It provides
-         asm/nmi.h, and defines its own arch_touch_nmi_watchdog().
-
 config HAVE_HARDLOCKUP_DETECTOR_ARCH
        bool
-       select HAVE_NMI_WATCHDOG
        help
-         The arch chooses to provide its own hardlockup detector, which is
-         a superset of the HAVE_NMI_WATCHDOG. It also conforms to config
-         interfaces and parameters provided by hardlockup detector subsystem.
+         The arch provides its own hardlockup detector implementation instead
+         of the generic ones.
+
+         It uses the same command line parameters, and sysctl interface,
+         as the generic hardlockup detectors.
 
 config HAVE_PERF_REGS
        bool
@@ -725,7 +735,9 @@ config HAS_LTO_CLANG
        depends on $(success,$(AR) --help | head -n 1 | grep -qi llvm)
        depends on ARCH_SUPPORTS_LTO_CLANG
        depends on !FTRACE_MCOUNT_USE_RECORDMCOUNT
-       depends on !KASAN || KASAN_HW_TAGS
+       # https://github.com/ClangBuiltLinux/linux/issues/1721
+       depends on (!KASAN || KASAN_HW_TAGS || CLANG_VERSION >= 170000) || !DEBUG_INFO
+       depends on (!KCOV || CLANG_VERSION >= 170000) || !DEBUG_INFO
        depends on !GCOV_KERNEL
        help
          The compiler and Kconfig options support building with Clang's
@@ -919,6 +931,14 @@ config HAVE_ARCH_HUGE_VMALLOC
 config ARCH_WANT_HUGE_PMD_SHARE
        bool
 
+# Archs that want to use pmd_mkwrite on kernel memory need it defined even
+# if there are no userspace memory management features that use it
+config ARCH_WANT_KERNEL_PMD_MKWRITE
+       bool
+
+config ARCH_WANT_PMD_MKWRITE
+       def_bool TRANSPARENT_HUGEPAGE || ARCH_WANT_KERNEL_PMD_MKWRITE
+
 config HAVE_ARCH_SOFT_DIRTY
        bool
 
@@ -1188,13 +1208,6 @@ config COMPAT_32BIT_TIME
 config ARCH_NO_PREEMPT
        bool
 
-config ARCH_EPHEMERAL_INODES
-       def_bool n
-       help
-         An arch should select this symbol if it doesn't keep track of inode
-         instances on its own, but instead relies on something else (e.g. the
-         host kernel for an UML kernel).
-
 config ARCH_SUPPORTS_RT
        bool