On Tue, Aug 26, 2008 at 12:53 AM, Ingo Molnar <mingo@elte.hu> wrote:
wonder if could use "unsigned long *" directly.
so could dyn_array directly like
int cpumask_size;
unsigned long *online_cpu_map;
DEFINE_DYN_ARRAY(online_cpu_map, sizeof(unsigned long), cpumask_size,
PAGE_SIZE, NULL);
and after nr_cpu_ids is assigned, have
cpumask_size = (nr_cpu_ids + sizeof(unsigned long) - 1)/sizeof(unsigned long);
then we could NR_CPUS=4096 kernel to small system. ...
YH
--