Skip to content

Per cpu relocation to ZERO and x86_32 percpu ops on x86_64

Christoph Lameter lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 19 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3Percpu infrastructure to rebase the per cpu area to 0ULinclude/asm-generic/percpu.h include/asm-generic/sections.h include/asm-generic/vmlinux.lds.h +2 more+42 -112 replies
2/3X86_64: Declare pda as per cpu data thereby moving it into the cpu areaarch/x86/kernel/head64.c arch/x86/kernel/setup64.c arch/x86/kernel/smpboot_64.c +3 more+21 -200 replies
3/3x86_64: Make the x86_32 percpu operations usable on x86_64arch/x86/Kconfig arch/x86/kernel/setup64.c arch/x86/kernel/vmlinux_64.lds.S +1 more+19 -31 reply

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] Per cpu relocation to ZERO and x86_32 percpu ops on x86_64

This patchset allows the use of x86_32 percpu ops on x86_64 while maintaining %gs pointing to the pda. It does that by moving the x86_64 pda into the percpu area (thereby pointing %gs at the per cpu area) and then relocating the x86_64 per cpu variables to start at 0.

Patch applies on top of the per cpu cleanup patches V2. See http://marc.info/?l=linux-kernel&m=119628478316525&w=2

Ultimately I think we can make the per cpu accessors arch independent (see the RFC at http://marc.info/?l=linux-kernel&m=119552126330405&w=2).
There is a performance benefit from using these in core code.