Skip to content

Make common x86 arch area for i386 and x86_64 - Take 3

Steven Rostedt lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest20 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/20early_printk.c switcharch/i386/Makefile arch/i386/kernel/Makefile arch/i386/kernel/early_printk.c +4 more+4 -40 replies
2/20tsc_sync.c switcharch/i386/kernel/Makefile arch/i386/kernel/tsc_sync.c arch/x86/kernel/Makefile +2 more+7 -30 replies
3/20bootflag.c switcharch/i386/kernel/Makefile arch/x86/kernel/Makefile arch/x86/kernel/bootflag.c +1 more+3 -30 replies
4/20quirks.c switcharch/i386/kernel/Makefile arch/x86/kernel/Makefile arch/x86/kernel/quirks.c +1 more+3 -40 replies
5/20i8237.c switcharch/i386/kernel/Makefile arch/x86/kernel/Makefile arch/x86/kernel/i8237.c +1 more+3 -40 replies
6/20topology.c switcharch/i386/kernel/Makefile arch/x86/kernel/Makefile arch/x86/kernel/topology.c +1 more+2 -40 replies
7/20alternative.c switcharch/i386/kernel/Makefile arch/x86/kernel/Makefile arch/x86/kernel/alternative.c +1 more+3 -40 replies
8/20msr.c switcharch/i386/kernel/Makefile arch/x86/kernel/Makefile arch/x86/kernel/msr.c +1 more+1 -30 replies
9/20cpuid.c switcharch/i386/kernel/Makefile arch/x86/kernel/Makefile arch/x86/kernel/cpuid.c +1 more+1 -30 replies
10/20microcode.c switcharch/i386/kernel/Makefile arch/x86/kernel/Makefile arch/x86/kernel/microcode.c +1 more+1 -30 replies
11/20pcspeaker.c switcharch/i386/kernel/Makefile arch/x86/kernel/Makefile arch/x86/kernel/pcspeaker.c +1 more+2 -30 replies
12/20mtrr directory switcharch/i386/kernel/cpu/Makefile arch/x86/kernel/Makefile arch/x86/kernel/cpu/Makefile +10 more+4 -20 replies
13/20therm_throt.c switcharch/i386/kernel/cpu/mcheck/Makefile arch/x86/kernel/cpu/Makefile arch/x86/kernel/cpu/mcheck/Makefile +2 more+4 -30 replies
14/20intel_cacheinfo.c switcharch/i386/kernel/cpu/Makefile arch/x86/kernel/cpu/Makefile arch/x86/kernel/cpu/intel_cacheinfo.c +1 more+2 -40 replies
15/20cpufreq files switchedarch/i386/kernel/cpu/cpufreq/Makefile arch/i386/kernel/cpu/cpufreq/speedstep-ich.c arch/i386/kernel/cpu/cpufreq/speedstep-smi.c +11 more+12 -270 replies
16/20acpi files switchedarch/i386/kernel/acpi/Makefile arch/x86/kernel/Makefile arch/x86/kernel/acpi/Makefile +4 more+6 -123 replies
17/20k8.c switcharch/i386/kernel/Makefile arch/x86/kernel/Makefile arch/x86/kernel/k8.c +1 more+1 -30 replies
18/20stacktrace.c switcharch/i386/kernel/Makefile arch/x86/kernel/Makefile arch/x86/kernel/stacktrace.c +1 more+2 -40 replies
19/20hugetlbpage.c switcharch/i386/Makefile arch/i386/mm/Makefile arch/x86/mm/Makefile +3 more+3 -30 replies
20/20oprofile files switchedarch/i386/Kconfig arch/i386/Makefile arch/x86/oprofile/Kconfig +14 more+4 -400 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH take3 00/20] Make common x86 arch area for i386 and x86_64 - Take 3

Once again here's an attempt to put the shared files of x86_64 and i386 into a separate directory.

This time, I took the pains to make sure that each patch in this series compiles after it is applied. I did this on both x86_64 as well as i386, with the affected files config options turned on.

I still stayed away from the pci shared code.

This time I moved the speedstep-lib.h into include/asm-x86. Although all references to this files now needs to explicitly state
#include <asm-x86/speedstep-lib.h>
But this will also create a doorway for other shared headers to go into.

And yes the long term goal is to perhaps make a single arch that can handle both the i386 modern CPUs as well as the x86_64 code. And then phase out the x86_64, keeping the current i386 for legacy hardware.

Used git-diff -M for the diffs, so the renames are explicitly stated as such, but no delete/create diff is made (so patch and quilt will not apply theses).

Comments and flames welcome.

-- Steve