Skip to content

x86, CPU: Some more cleanups and rearrangements

Borislav Petkov lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3x86, CPU: Add bug flags to /proc/cpuinfoarch/x86/include/asm/cpufeature.h arch/x86/kernel/cpu/mkcapflags.sh arch/x86/kernel/cpu/proc.c+53 -160 replies
2/3x86, AMD: Cleanup init_amdarch/x86/kernel/cpu/amd.c+161 -1780 replies
3/3x86, CPU: Kill cpu_has_mparch/x86/include/asm/cpufeature.h+0 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] x86, CPU: Some more cleanups and rearrangements

From: Borislav Petkov <[email protected]>

Hi,

some more stuff from recently:

01 adds "bugs : " line to /proc/cpuinfo to show for which hw bugs of the current CPU the kernel knows and possibly applies a workaround.

02 is a bit big but it is basically reorganizing code around and doing small changes like replacing cpu_has_mp with the dynamic cpu_has call so that we can remove the former.

03 does that.

Tested on a bunch of AMD and Intel machines.

Borislav Petkov (3):
x86, CPU: Add bug flags to /proc/cpuinfo
x86, AMD: Cleanup init_amd
x86, CPU: Kill cpu_has_mp

 arch/x86/include/asm/cpufeature.h |  14 +-
 arch/x86/kernel/cpu/amd.c         | 339 ++++++++++++++++++--------------------
 arch/x86/kernel/cpu/mkcapflags.sh |  51 ++++--
 arch/x86/kernel/cpu/proc.c        |   8 +
 4 files changed, 214 insertions(+), 198 deletions(-)
Signature · 1 line
2.0.0