linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Borislav Petkov <bp@alien8.de>
To: Thomas Gleixner <tglx@linutronix.de>
Cc: X86 ML <x86@kernel.org>, LKML <linux-kernel@vger.kernel.org>
Subject: [PATCH 0/3] x86/CPUID: CPUID parsing rework, p1
Date: Wed, 14 Nov 2018 22:28:40 +0100	[thread overview]
Message-ID: <20181114212843.16954-1-bp@alien8.de> (raw)

From: Borislav Petkov <bp@suse.de>

Hi all,

this is the beginning of a long conversion. The final goal is to have
one global, read-only CPUID hierarchy representation in arch/x86/ to
replace all the gazillion places where CPUID is read and thus slim a lot
of code. And improve all that X86_FEATURE* diddling. We'll see...

Anyway, these are the first three patches slimming cpuinfo_x86 by
80 bytes per CPU, by making vendor ID and brand name global and
__ro_after_init.

Comments, reviews, etc are welcome, as always.

Thx.

Borislav Petkov (3):
  x86/cpuid: Make cpuinfo_x86.x86_vendor_id global
  x86/cpuid: Get vendor ID on the BSP
  x86/cpuid: Make cpuinfo_x86.x86_model_id global

 arch/x86/include/asm/processor.h     |  6 +--
 arch/x86/kernel/asm-offsets_32.c     |  1 -
 arch/x86/kernel/cpu/amd.c            |  4 +-
 arch/x86/kernel/cpu/centaur.c        |  2 +-
 arch/x86/kernel/cpu/common.c         | 56 +++++++++++++++-------------
 arch/x86/kernel/cpu/cyrix.c          |  7 ++--
 arch/x86/kernel/cpu/intel.c          |  2 +-
 arch/x86/kernel/cpu/proc.c           |  4 +-
 arch/x86/kernel/head_32.S            |  5 ---
 arch/x86/kernel/setup.c              |  3 ++
 drivers/cpufreq/powernow-k8.c        |  2 +-
 drivers/cpufreq/speedstep-centrino.c |  6 +--
 drivers/cpufreq/speedstep-lib.c      |  2 +-
 drivers/edac/e752x_edac.c            |  3 +-
 drivers/hwmon/coretemp.c             |  2 +-
 drivers/hwmon/k10temp.c              |  2 +-
 drivers/platform/x86/intel_ips.c     |  6 +--
 17 files changed, 57 insertions(+), 56 deletions(-)

-- 
2.19.1


             reply	other threads:[~2018-11-14 21:28 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-14 21:28 Borislav Petkov [this message]
2018-11-14 21:28 ` [PATCH 1/3] x86/cpuid: Make cpuinfo_x86.x86_vendor_id global Borislav Petkov
2018-11-14 21:28 ` [PATCH 2/3] x86/cpuid: Get vendor ID on the BSP Borislav Petkov
2018-11-14 21:28 ` [PATCH 3/3] x86/cpuid: Make cpuinfo_x86.x86_model_id global Borislav Petkov
2018-11-27 15:55   ` Andy Shevchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181114212843.16954-1-bp@alien8.de \
    --to=bp@alien8.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tglx@linutronix.de \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).