Skip to content

percpu: Per cpu code simplification V3

[email protected] linux-ia64 linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 8 repliesIn review

V1->V2 from the cover letter

- Add support for specifying attributes for per cpu declarations (preserves IA64 model(small) attribute).
- Drop first patch that removes the model(small) attribute for IA64
- Missing #endif in powerpc generic config / Wrong Kconfig
- Follow Randy's suggestions on how to do the Kconfig settings

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10percpu: Use a kconfig variable to signal arch specific percpu setuparch/ia64/Kconfig arch/powerpc/Kconfig arch/sparc64/Kconfig +5 more+14 -71 reply
2/10percpu: Move arch XX_PER_CPU_XX definitions into linux/percpu.hinclude/asm-generic/percpu.h include/asm-ia64/percpu.h include/asm-powerpc/percpu.h +5 more+26 -1200 replies
3/10percpu: Make the asm-generic/percpu.h more "generic"arch/ia64/kernel/module.c include/asm-generic/percpu.h+64 -120 replies
4/10x86_32: Use generic percpu.hinclude/asm-x86/percpu_32.h+9 -210 replies
5/10x86_64: Use generic percpuinclude/asm-x86/percpu_64.h+2 -210 replies
6/10s390: Use generic percpuinclude/asm-s390/percpu.h+9 -330 replies
7/10Powerpc: Use generic per cpuinclude/asm-powerpc/percpu.h+2 -270 replies
8/10Sparc64: Use generic percpuarch/sparc64/mm/init.c include/asm-sparc64/percpu.h+8 -190 replies
9/10ia64: Use generic percpuarch/ia64/kernel/module.c include/asm-ia64/percpu.h include/linux/percpu.h+7 -370 replies
10/10x86: Unify percpu.hinclude/asm-x86/percpu.h include/asm-x86/percpu_32.h include/asm-x86/percpu_64.h+141 -1640 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/10] percpu: Per cpu code simplification V3

This patchset simplifies the code that arches need to maintain to support per cpu functionality. Most of the code is moved into arch independent code. Only a minimal set of definitions is kept for each arch.

The patch also unifies the x86 arch so that there is only a single asm-x86/percpu.h

V1->V2:
- Add support for specifying attributes for per cpu declarations (preserves IA64 model(small) attribute).
- Drop first patch that removes the model(small) attribute for IA64
- Missing #endif in powerpc generic config / Wrong Kconfig
- Follow Randy's suggestions on how to do the Kconfig settings

V2->V3:
- fix x86_64 non-SMP case
- change SHIFT_PTR to SHIFT_PERCPU_PTR
- fix various percpu_modcopy()'s to reference correct per_cpu_offset()
- s390 has a special way to determine the pointer to a per cpu area

Signature · 5 lines
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>