riscv: Kconfig: Style cleanups
authorPalmer Dabbelt <palmer@rivosinc.com>
Fri, 1 Jul 2022 02:18:51 +0000 (19:18 -0700)
committerPalmer Dabbelt <palmer@rivosinc.com>
Fri, 1 Jul 2022 02:26:16 +0000 (19:26 -0700)
The majority of the Kconfig files use a single tab for basic indentation
and a single tab followed by two whitespaces for help text indentation.
Fix the lines that don't follow this convention.

While at it, add trailing comments to endif/endmenu statements for
better readability.

* 'riscv-kconfig_cleanups' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/palmer/linux:
  riscv: Kconfig.socs: Add comments
  riscv: Kconfig.erratas: Add comments
  riscv: Kconfig: Fix indentation and add comments

1  2 
arch/riscv/Kconfig
arch/riscv/Kconfig.erratas
arch/riscv/Kconfig.socs

@@@ -352,30 -328,12 +352,30 @@@ config RISCV_ISA_
        bool "Emit compressed instructions when building Linux"
        default y
        help
-          Adds "C" to the ISA subsets that the toolchain is allowed to emit
-          when building Linux, which results in compressed instructions in the
-          Linux binary.
+         Adds "C" to the ISA subsets that the toolchain is allowed to emit
+         when building Linux, which results in compressed instructions in the
+         Linux binary.
  
-          If you don't know what to do here, say Y.
+         If you don't know what to do here, say Y.
  
 +config RISCV_ISA_SVPBMT
 +      bool "SVPBMT extension support"
 +      depends on 64BIT && MMU
 +      select RISCV_ALTERNATIVE
 +      default y
 +      help
 +         Adds support to dynamically detect the presence of the SVPBMT
 +         ISA-extension (Supervisor-mode: page-based memory types) and
 +         enable its usage.
 +
 +         The memory type for a page contains a combination of attributes
 +         that indicate the cacheability, idempotency, and ordering
 +         properties for access to that page.
 +
 +         The SVPBMT extension is only available on 64Bit cpus.
 +
 +         If you don't know what to do here, say Y.
 +
  config FPU
        bool "FPU support"
        default y
@@@ -462,19 -394,7 +462,19 @@@ config CRASH_DUM
  
          For more details see Documentation/admin-guide/kdump/kdump.rst
  
- endmenu
 +config COMPAT
 +      bool "Kernel support for 32-bit U-mode"
 +      default 64BIT
 +      depends on 64BIT && MMU
 +      help
 +        This option enables support for a 32-bit U-mode running under a 64-bit
 +        kernel at S-mode. riscv32-specific components such as system calls,
 +        the user helper functions (vdso), signal rt_frame functions and the
 +        ptrace interface are handled appropriately by the kernel.
 +
 +        If you want to execute 32-bit userspace applications, say Y.
 +
+ endmenu # "Kernel features"
  
  menu "Boot options"
  
@@@ -33,26 -42,4 +33,26 @@@ config ERRATA_SIFIVE_CIP_120
  
          If you don't know what to do here, say "Y".
  
- endmenu
 +config ERRATA_THEAD
 +      bool "T-HEAD errata"
 +      depends on !XIP_KERNEL
 +      select RISCV_ALTERNATIVE
 +      help
 +        All T-HEAD errata Kconfig depend on this Kconfig. Disabling
 +        this Kconfig will disable all T-HEAD errata. Please say "Y"
 +        here if your platform uses T-HEAD CPU cores.
 +
 +        Otherwise, please say "N" here to avoid unnecessary overhead.
 +
 +config ERRATA_THEAD_PBMT
 +      bool "Apply T-Head memory type errata"
 +      depends on ERRATA_THEAD && 64BIT
 +      select RISCV_ALTERNATIVE_EARLY
 +      default y
 +      help
 +        This will apply the memory type errata to handle the non-standard
 +        memory type bits in page-table-entries on T-Head SoCs.
 +
 +        If you don't know what to do here, say "Y".
 +
+ endmenu # "CPU errata selection"
Simple merge