From: Rusty Russell Date: Mon, 24 Nov 2008 16:05:04 +0000 (+1030) Subject: sched: convert struct sched_group/sched_domain cpumask_ts to variable bitmaps X-Git-Tag: v2.6.29-rc1~538^2~49 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c99e9ad47d9c082bd096f42fb49e397b05d58a8;p=pandora-kernel.git sched: convert struct sched_group/sched_domain cpumask_ts to variable bitmaps Impact: (future) size reduction for large NR_CPUS. We move the 'cpumask' member of sched_group to the end, so when we kmalloc it we can do a minimal allocation: saves space for small nr_cpu_ids but big CONFIG_NR_CPUS. Similar trick for 'span' in sched_domain. This isn't quite as good as converting to a cpumask_var_t, as some sched_groups are actually static, but it's safer: we don't have to figure out where to call alloc_cpumask_var/free_cpumask_var. Signed-off-by: Rusty Russell Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed