Skip to contentSkip to conversation

cpuinfo: implement cpuinfo in sysfs

PATCH Greg KH 1 participant 2 messages Aug 28, 2017 1 message not in the archive

lore
Share & tools
lore

Greg KH

author
#1 lore raw
In reply to a message not in the archive
Quoted 6 lines · Felix Schnizlein

Make data from current /proc/cpuinfo available in sysfs.

Some parts of /proc/cpuinfo are already accessible through sysfs like microcode, topology and cache info.
Now migrate the rest of worthful cpuinfo data.

Quoted 8 lines

While ACPI, cpufreq and most of /proc/cpuinfo data has already been migrated to sysfs, this is another step in transitioning from proc to sysfs.

This patch series provides the architecture independent interface in drivers/base/cpuinfo.c and the x86 and arm64 implementations in 3 separate patches.

More architectures can now be added easily by looking at the x86 patch.

Nice job, thanks for sticking with this, now applied.

greg k-h

author
#2 lore raw
Quoted 10 lines · Greg KH
Quoted 9 lines · Felix Schnizlein

Make data from current /proc/cpuinfo available in sysfs.

Some parts of /proc/cpuinfo are already accessible through sysfs like microcode, topology and cache info.
Now migrate the rest of worthful cpuinfo data.

While ACPI, cpufreq and most of /proc/cpuinfo data has already been migrated to sysfs, this is another step in transitioning from proc to sysfs.

Quoted 7 lines
Quoted 5 lines

This patch series provides the architecture independent interface in drivers/base/cpuinfo.c and the x86 and arm64 implementations in 3 separate patches.

More architectures can now be added easily by looking at the x86 patch.

Nice job, thanks for sticking with this, now applied.

Oops, no, it breaks the build:

make[2]: *** No rule to make target 'arch/x86/kernel/cpuinfo.o', needed by 'arch/x86/kernel/built-in.o'. Stop. make[1]: *** [scripts/Makefile.build:561: arch/x86/kernel] Error 2
make: *** [Makefile:1019: arch/x86] Error 2

You did test this, right?

Please fix and resend...

thanks,

greg k-h