Re: [PATCH 1/3] cpuinfo: add sysfs based arch independent cpuinfo framework

From: Randy Dunlap
Date: Fri Dec 06 2019 - 11:56:29 EST


On 12/6/19 8:24 AM, Thomas Renninger wrote:
> diff --git a/arch/Kconfig b/arch/Kconfig
> index 48b5e103bdb0..39015570b1ca 100644
> --- a/arch/Kconfig
> +++ b/arch/Kconfig
> @@ -882,6 +882,17 @@ config STRICT_MODULE_RWX
> and non-text memory will be made non-executable. This provides
> protection against certain security exploits (e.g. writing to text)
>
> +config CPUINFO_SYSFS
> + bool "Provides processor information in sysfs. Successor of /proc/cpuinfo"

Provide

> + def_bool y
> + depends on HAVE_CPUINFO_SYSFS
> + help
> + Provides architecture specific processor information in /sys/devices/system/cpu/info> + Use this instead of /proc/cpuinfo

End those 2 sentences with periods (full stop), please.

> +
> +config HAVE_CPUINFO_SYSFS
> + bool
> +
> # select if the architecture provides an asm/dma-direct.h header
> config ARCH_HAS_PHYS_TO_DMA
> bool


--
~Randy