Skip to content

percpu: Per cpu code simplification rc8-mm1-fixup

[email protected] linux-ia64 linux-mm lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 0 repliesNew

V3->V4 from the cover letter

- 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.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8Modules: Fold percpu_modcopy into module.c rc8-mm1-fixuparch/ia64/kernel/module.c include/asm-generic/percpu.h include/asm-ia64/percpu.h +3 more+8 -420 replies
2/8percpu: Change Kconfig to HAVE_SETUP_PER_CPU_AREA rc8-mm1-fixuparch/Kconfig arch/ia64/Kconfig arch/powerpc/Kconfig +4 more+10 -150 replies
3/8pecpu: Fix size of percpu_data.ptrs array rc8-mm1-fixupinclude/linux/percpu.h+1 -10 replies
4/8Sparc64: Use generic percpu fixup rc8-mm1-fixuparch/sparc64/mm/init.c include/asm-sparc64/percpu.h+8 -190 replies
5/8ia64: Use generic percpu fixup rc8-mm1-fixupinclude/asm-ia64/percpu.h include/linux/percpu.h+7 -210 replies
6/8Powerpc: Use generic per cpu rc8-mm1-fixupinclude/asm-powerpc/percpu.h+2 -180 replies
7/8s390: Use generic percpu rc8-mm1-fixupinclude/asm-s390/percpu.h+9 -240 replies
8/8percpu: Add debug of invalid per_cpu usage rc8-mm1-fixupinclude/asm-generic/percpu.h lib/Kconfig.debug+22 -10 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/8] percpu: Per cpu code simplification rc8-mm1-fixup

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-rc8-mm1

Note there are two versions of this patchset:
- 2.6.24-rc8-mm1
- 2.6.24-rc8-mm1 + latest (08/1/21) git-x86

---
rc8-mm1-fixup:

- rebased from 2.6.24-rc6-mm1 to 2.6.24-rc8-mm1 (removed changes that are in the git-x86.patch)
- added back in missing fold-percpu_modcopy pieces

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.

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

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

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>