* [PATCH 0/6] Final cpumask conversion patches for 4096+ cpus
@ 2009-11-19 8:58 Rusty Russell
0 siblings, 0 replies; only message in thread
From: Rusty Russell @ 2009-11-19 8:58 UTC (permalink / raw)
To: linux-kernel; +Cc: Ingo Molnar, Mike Travis
Finally, these 6 patches actually allocate short (nr_cpu_ids-bits) cpumasks
and nail down the lid so the compiler will find new abuses if they creep in.
For non-CONFIG_CPUMASK_OFFSTACK:
The only visible changes are that you have to use the accessors
mm_cpumask() and tsk_cpumask. They convert the bitmaps (moved to the end
of those structs) to 'struct cpumask *'.
For CONFIG_CPUMASK_OFFSTACK=y:
We allocate the mm and task_struct bitmaps short (nr_cpu_ids, rather
than the compile-time NR_CPUS). A couple of patches get rid of the
old-style cpus_ ops so noone uses them accidentally. We don't define
struct cpumask at all, which prevents accidental abuse. Finally, we
reduce cpumask_size() so our dynamically-allocated cpumasks are only
nr_cpu_ids big.
Cheers,
Rusty.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-11-19 8:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-19 8:58 [PATCH 0/6] Final cpumask conversion patches for 4096+ cpus Rusty Russell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox