Skip to content

x86: Reduce pressure on stack from cpumask usage

[email protected] linux-mm lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2cpumask: Convert cpumask_of_cpu to static arrayarch/x86/kernel/process_64.c arch/x86/mm/numa_64.c include/linux/cpumask.h +2 more+19 -00 replies
2/2cpumask: Convert set_cpus_allowed to use ptr for cpumask arginclude/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

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>