Skip to content

robust per_cpu allocation for modules - V2

Steven Rostedt linux-ia64 linux-mips linuxppc-dev lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8percpu -v2 main.c setupinit/main.c+13 -50 replies
2/8percpu -v2 module insertioninclude/linux/module.h kernel/module.c+100 -1090 replies
3/8percpu -v2 static updatesarch/arm/kernel/smp.c arch/i386/kernel/process.c arch/i386/mach-voyager/voyager_smp.c +47 more+75 -750 replies
4/8percpu -v2 asm-generic/percpu.hinclude/asm-generic/percpu.h+58 -100 replies
5/8percpu -v2 vmlinux.lds.h percpu_offset macroinclude/asm-generic/vmlinux.lds.h+8 -00 replies
6/8percpu -v2 arch/i386 vmlinux.lds.Sarch/i386/kernel/vmlinux.lds.S+1 -00 replies
7/8percpu -v2 arch/x86_64/vmlinux.lds.harch/x86_64/kernel/vmlinux.lds.S+2 -00 replies
8/8percpu -v2 x86_64 arch updatesarch/x86_64/kernel/setup64.c arch/x86_64/kernel/smp.c include/asm-x86_64/percpu.h+37 -140 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 00/08] robust per_cpu allocation for modules - V2

This is version 2 of the percpu patch set.

Changes from version 1:

- Created a PERCPU_OFFSET variable to use in vmlinux.lds.h (suggested by Sam Ravnborg)

- Added support for x86_64 (Steven Rostedt)

The support for x86_64 goes back to the asm-generic handling when both CONFIG_SMP and CONFIG_MODULES are set. This is due to the fact that the __per_cpu_offset array is no longer referenced in per_cpu, but instead a per per_cpu variable is used to find the offset.

Again, the rest of the patches are only sent to the LKML.

Still I need help to port this to the rest of the architectures.

Thanks,

-- Steve