public inbox for linux-arch@vger.kernel.org
 help / color / mirror / Atom feed
* Heads up: cpumask changes
@ 2008-11-18 14:00 Rusty Russell
  0 siblings, 0 replies; only message in thread
From: Rusty Russell @ 2008-11-18 14:00 UTC (permalink / raw)
  To: linux-arch; +Cc: Mike Travis

Hi all,

   With large NR_CPUS coming, Mike and I have been working to make dynamic 
cpumasks an option.  The main change is to APIs which pass cpumask_t around; 
they'll now be '[const] struct cpumask *'.  This unfortunately will hit arch 
code as interfaces get frobbed, and a couple of nasty one-shot transitions are 
unavoidable.

   For archs which never intend to support CONFIG_CPUMASK_OFFSTACK, the rest 
of the changes will be cosmetic (eg. s/cpumask_t/struct cpumask/ eventually).  
For x86 and others who allow CONFIG_CPUMASK_OFFSTACK, "struct cpumask" will 
eventually be undefined so it cannot be assigned or used on the stack: this 
means use cpumask_copy(), cpumask_var_t and as a last resort, 
DEFINE_BITMAP(bitmap, NR_CPUS) and to_cpumask(bitmap).

   We've been working most closely with Ingo, as x86, irq and scheduler are 
most effected.  Apologies in advance for the churn, but the final result will 
be a neater API than what we have now as well as stupid numbers of cpus in 
your .config.

Thanks!
Rusty.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-11-18 14:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-18 14:00 Heads up: cpumask changes Rusty Russell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox