Skip to content

x86: Reduce pressure on stack from cpumask usage -v2

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

v2 from the cover letter

- fix some compile errors when NR_CPUS > default for ia386 (128 & 4096)
- remove unneccessary includes

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2cpumask: Convert cpumask_of_cpu to static array -v2arch/x86/kernel/apic_32.c arch/x86/kernel/apic_64.c arch/x86/kernel/cpu/intel.c +9 more+26 -00 replies
2/2cpumask: Convert set_cpus_allowed to use ptr for cpumask arg -v2include/linux/sched.h kernel/sched.c+25 -80 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/2] x86: Reduce pressure on stack from cpumask usage -v2

v2:
- fix some compile errors when NR_CPUS > default for ia386 (128 & 4096)
- remove unneccessary includes

Convert cpumask_of_cpu to use a static percpu data array and set_cpus_allowed to pass the cpumask_t arg as a pointer.

Conditioned on NR_CPUS > BITS_PER_LONG.

Compiled and tested for i386 and x86_64. I'd appreciate feedback on other architectures.

(Note: there are still compile/test errors when NR_CPUS > 256 due to cpu id being 8 bits among other things.)

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>