lkml.org 
[lkml]   [2019]   [Dec]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 3/3] arm64 cpuinfo: implement sysfs nodes for arm64
On Fri, Dec 06, 2019 at 05:24:21PM +0100, Thomas Renninger wrote:
> From: Felix Schnizlein <fschnizlein@suse.de>
>
> Export all information from /proc/cpuinfo to sysfs:
> implementer, architecture, variant, part, revision,
> bogomips and flags are exported.
>
> Example:
> /sys/devices/system/cpu/cpu1/info/:[0]# head *
> ==> architecture <==
> 8
>
> ==> bogomips <==
> 40.00
>
> ==> flags <==
> fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid asimdrdm
>
> ==> implementer <==
> 0x51
>
> ==> part <==
> 0xc00
>
> ==> revision <==
> 1
>
> ==> variant <==
> 0x0
>
> Signed-off-by: Thomas Renninger <trenn@suse.de>
> Signed-off-by: Felix Schnizlein <fschnizlein@suse.com>
> ---
> Documentation/ABI/testing/sysfs-devices-system-cpu | 22 +++++++++
> arch/arm64/Kconfig | 1 +
> arch/arm64/kernel/cpuinfo.c | 55 ++++++++++++++++++++++
> 3 files changed, 78 insertions(+)

I don't understand why we need this on arm64 and why it's an improvement
over all the other schemes we already support for identifying CPU features.

Given the pain we've endured over the years exposing this sort of stuff to
userspace, I'm relucant to add more just for the fun of it.

Will

\
 
 \ /
  Last update: 2019-12-09 11:32    [W:0.158 / U:0.476 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site