From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752074AbdHBQqY (ORCPT ); Wed, 2 Aug 2017 12:46:24 -0400 Received: from smtp.nue.novell.com ([195.135.221.5]:58016 "EHLO smtp.nue.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751648AbdHBQqX (ORCPT ); Wed, 2 Aug 2017 12:46:23 -0400 Date: Wed, 2 Aug 2017 18:46:21 +0200 From: Felix Schnizlein To: Greg KH Cc: linux-kernel@vger.kernel.org, x86@kernel.org, yanmin.zhang@intel.com, mingo@redhat.com, trenn@suse.com Subject: Re: [PATCH 1/2] Add sysfs based cpuinfo structure Message-ID: <20170802164621.43ckgv2vieudvifc@angmar> References: <1501686852-13692-1-git-send-email-fschnizlein@suse.com> <1501686852-13692-2-git-send-email-fschnizlein@suse.com> <20170802160420.GA18507@kroah.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ynebhtvgyvgohdwa" Content-Disposition: inline In-Reply-To: <20170802160420.GA18507@kroah.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --ynebhtvgyvgohdwa Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 02.08.17, Greg KH wrote: > On Wed, Aug 02, 2017 at 05:14:11PM +0200, Felix Schnizlein wrote: > > Create a new sysfs attribute group called 'info' for each > > online cpu. The cleaned up cpuinfo shows up in a sysfs > > subdirectory here: /sys/devices/system/cpu/cpu#/info. > >=20 > > Define preprocessor macros (CPUINFO_DEFINE_* and CPUINFO_ATTR) to make > > defining new sysfs attributes for cpuinfo more easy. > >=20 > > Add basic documentation for the info sysfs tree. > >=20 > > Signed-off-by: Felix Schnizlein > > Signed-off-by: Thomas Renninger > > --- > > Documentation/ABI/testing/sysfs-devices-system-cpu | 17 ++++++++ > > arch/Kconfig | 3 ++ > > drivers/base/Makefile | 1 + > > drivers/base/cpuinfo.c | 48 ++++++++++++++= ++++++++ > > include/linux/cpuhotplug.h | 1 + > > include/linux/cpuinfo.h | 43 ++++++++++++++= +++++ > > 6 files changed, 113 insertions(+) > > create mode 100644 drivers/base/cpuinfo.c > > create mode 100644 include/linux/cpuinfo.h > >=20 > > diff --git a/Documentation/ABI/testing/sysfs-devices-system-cpu b/Docum= entation/ABI/testing/sysfs-devices-system-cpu > > index f3d5817..fbaf165 100644 > > --- a/Documentation/ABI/testing/sysfs-devices-system-cpu > > +++ b/Documentation/ABI/testing/sysfs-devices-system-cpu > > @@ -373,3 +373,20 @@ Contact: Linux kernel mailing list > > Description: information about CPUs heterogeneity. > > =20 > > cpu_capacity: capacity of cpu#. > > + > > +What: /sys/devices/system/cpu/cpu#/info/ > > +Date: June 2017 > > +Contact: Linux kernel mailing list > > +Description: Various information about the online cpu. Which attribute= s are > > + available depends on the architecture, kernel configuration and > > + cpu model. >=20 > tabs? Oh.. it seems I missed this line. I will fix this! >=20 > > + > > +What: /sys/devices/system/cpu/cpu#/info/ > > + /sys/devices/system/cpu/cpu#/info/vendor_id > > + /sys/devices/system/cpu/cpu#/info/cpu_family > > + /sys/devices/system/cpu/cpu#/info/model > > + /sys/devices/system/cpu/cpu#/info/model_name > > + /sys/devices/system/cpu/cpu#/info/stepping > > + /sys/devices/system/cpu/cpu#/info/flags > > + /sys/devices/system/cpu/cpu#/info/bugs > > + /sys/devices/system/cpu/cpu#/info/bogomips >=20 > Can you guarantee that all arches will be able to provide these? Of course, I can not. I move it too the x86 section in the second patch. It seems messed up the last rebase. Sorry for the noise and stupid mistakes... And thank you for the feedback and your patience! Felix >=20 > thanks, >=20 > greg k-h >=20 --ynebhtvgyvgohdwa Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEECcIUp05v5BnDsR6tT4AWTCp2DB0FAlmCAdEACgkQT4AWTCp2 DB14jwf+IJsUTMSbzgEfT+SJ0DCwXf4+ZKY3uQEFfXpCZH74NPOYjIWCoWd7R4kI K2jlS49J5IMKRGdsHEYZOKeZhrHYBPldxkkNR1Mmv5ZHOB0In8ROBNiMNy+uFK0R P+H13kPLSGzTN7+uFdNQ4OJNCKD2VepaO0+8L4sGFZTMuJpOLdVNYJpNxyLYNX95 U5DyQo4MzyXzuQcB1M2uMox8GcqDonnGzzcSxqSjLRbzbEXhY0TOwssIh1NZZ+B3 L8LHhYFD/OcOqNKd5xoNJoSnGKXyEASUpPgO/ZHVkrn0JEml8emTGzJFDXcOImS6 zFyOTyLOg9FPuwzIYhKnp7ujG3n0Hw== =DA3u -----END PGP SIGNATURE----- --ynebhtvgyvgohdwa--