Skip to content

better i386 CPU selection

Adrian Bunk lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4better i386 CPU selectionarch/i386/Kconfig arch/i386/Makefile arch/i386/boot/setup.S +7 more+167 -1730 replies
2/4better i386 CPU selectionarch/i386/kernel/cpu/intel.c arch/i386/lib/usercopy.c+7 -70 replies
3/4better i386 CPU selectionarch/i386/kernel/cpu/Makefile arch/i386/kernel/cpu/common.c arch/i386/mm/init.c+57 -100 replies
4/4better i386 CPU selectionarch/i386/kernel/cpu/mtrr/Makefile arch/i386/kernel/cpu/mtrr/main.c+24 -40 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [0/4] [2.6 patch] better i386 CPU selection

Changes since the last set of patches:
- CONFIG_X86_INTEL_USERCOPY is used if at least one configured CPU supports it
- rediffed against 2.6.0-test5-mm4

[1/4]
- changed the i386 CPU selection from a choice to single options for every cpu
- renamed the M* variables to CPU_*, this is needed to ask the users upgrading from older kernels instead of silently changing the semantics
- X86_GOOD_APIC -> X86_BAD_APIC
- AMD Elan is a different subarch, you can't configure a kernel that runs on both the AMD Elan and other i386 CPUs
- added optimizing CFLAGS for the AMD Elan
- gcc 2.95 supports -march=k6 (no need for check_gcc)
- help text changes/updates

[2/4]
move "struct movsl_mask movsl_mask" to usercopy.c (CONFIG_X86_INTEL_USERCOPY is used on non-Intel CPUs)

[3/4]
- made arch/i386/kernel/cpu/Makefile CPU specific

[4/4]
- made arch/i386/kernel/cpu/mtrr/Makefile CPU specific

Dependencies between these patches:
- patch 3 requires 1+2
- patch 4 requires 1

The main part is patch 1.

Patch 2 fixes a small issue that only shows up with patch 3.

Patches 3+4 add some space optimizations by omitting unneeded code. They are _not_ required, the main part is patch 1.

TODO:
- change include/asm-i386/module.h to use some kind of bitmask

cu
Adrian