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

index 32ffef9f6e5b4f116034fb1c65388e80d082c361,4507847d7c9c5a3b2883611c71b014459f5c3b26..b17fd4666b0c68d31190887b5615802e3cb16c31
@@@ -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"
  
index 457ac72c9b36d6296064201a4bfd5318095c644a,076005c5dad598c85d7eb91548778cf0c4a4763b..f62b62807e853a7a608bb47a516c02220b25f64b
@@@ -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