lkml.org 
[lkml]   [2018]   [Nov]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/3] x86/CPUID: CPUID parsing rework, p1
Date
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

\
 
 \ /
  Last update: 2018-11-14 22:29    [W:0.057 / U:0.348 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site