cpumask: fix CONFIG_NUMA=y sched.c
authorRusty Russell <rusty@rustcorp.com.au>
Sun, 11 Jan 2009 00:04:16 +0000 (01:04 +0100)
committerIngo Molnar <mingo@elte.hu>
Sun, 11 Jan 2009 00:04:16 +0000 (01:04 +0100)
commit62ea9ceb17a74bc7544211bfeecf4170c554ac4f
treeef8f6b185463a4b68908ca23357efd3d1ddb6145
parent3d14bdad40315b54470cb7812293d14c8af2bf7d
cpumask: fix CONFIG_NUMA=y sched.c

Impact: fix panic on ia64 with NR_CPUS=1024

struct sched_domain is now a dangling structure; where we really want
static ones, we need to use static_sched_domain.

(As the FIXME in this file says, cpumask_var_t would be better, but
this code is hairy enough without trying to add initialization code to
the right places).

Reported-by: Mike Travis <travis@sgi.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched.c