linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] x86/CPUID: CPUID parsing rework, p1
@ 2018-11-14 21:28 Borislav Petkov
  2018-11-14 21:28 ` [PATCH 1/3] x86/cpuid: Make cpuinfo_x86.x86_vendor_id global Borislav Petkov
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Borislav Petkov @ 2018-11-14 21:28 UTC (permalink / raw)
  To: Thomas Gleixner; +Cc: X86 ML, LKML

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-11-27 15:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-14 21:28 [PATCH 0/3] x86/CPUID: CPUID parsing rework, p1 Borislav Petkov
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

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).