Skip to content

i386 GDT cleanups

Rusty Russell lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4i386 GDT cleanups: Use per-cpu variables for GDT, PDAarch/i386/kernel/cpu/common.c arch/i386/kernel/smpboot.c arch/i386/mach-voyager/voyager_smp.c +3 more+21 -1160 replies
2/4i386 GDT cleanups: Use per-cpu GDT immediately upon bootarch/i386/kernel/cpu/common.c arch/i386/kernel/head.S arch/i386/kernel/smpboot.c +4 more+81 -1309 replies
3/4i386 GDT cleanups: clean up cpu_init()arch/i386/kernel/cpu/common.c arch/i386/kernel/smpboot.c include/asm-i386/processor.h+15 -310 replies
4/4i386 GDT cleanups: cleanup GDT Accessarch/i386/kernel/cpu/common.c arch/i386/kernel/efi.c arch/i386/kernel/entry.S +5 more+27 -330 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchRusty Russell
1/4
2/4A-b
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] i386 GDT cleanups

After lots of good feedback and contributions from the last series, this set of 4 simply cleans up GDT usage in i386. Percpu->pda is not
included: it's really a separate problem (but made much simpler by these patches).

Patches are:
no-gdt-pda-alloc.patch
- Simplify by using per-cpu vars for gdt & pda, not allocating. This patch has been seen here before, and Jeremy Fitzhardinge acked it.

direct-percpu-gdt.patch
- Simplify boot by switching straight from boot_gdt_table straight to per-cpu versions, rather than going to cpu_gdt_table then per-cpu gdt. This is a new approach after Ingo cautioned about removing boot_gdt_table.

cleanup-cpuinits.patch
- Simple patch: we can now roll two identical functions together

cleanup-gdt-accessors.patch
- Remove a level of indirection

Cheers,
Rusty.