Skip to content

percpu: Per cpu code simplification V4

[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 5 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/Kconfig arch/ia64/Kconfig arch/powerpc/Kconfig +6 more+12 -70 replies
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"include/asm-generic/percpu.h+62 -100 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 -240 replies
7/10Powerpc: Use generic per cpuinclude/asm-powerpc/percpu.h+2 -180 replies
8/10Sparc64: Use generic percpuarch/sparc64/mm/init.c include/asm-sparc64/percpu.h+7 -100 replies
9/10ia64: Use generic percpuinclude/asm-ia64/percpu.h include/linux/percpu.h+7 -210 replies
10/10x86: Unify percpu.hinclude/asm-x86/percpu.h include/asm-x86/percpu_32.h include/asm-x86/percpu_64.h+141 -1465 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 V4

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

Based on: 2.6.24-rc6-mm1
---

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

V3->V4:
- rebased patchset on 2.6.24-rc6-mm1
(removes the percpu_modcopy changes that are already in.)
- change config ARCH_SETS_UP_PER_CPU_AREA to a global var and use select HAVE_SETUP_PER_CPU_AREA to specify.

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>