From: Mike Travis Date: Tue, 22 Apr 2008 17:04:26 +0000 (-0700) Subject: [PATCH] Build fix for CONFIG_NUMA=y && CONFIG_SMP=n X-Git-Tag: v2.6.26-rc1~1056^2 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03970f065d9b4b156d0e879f82989440f7045396;p=linux-2.6 [PATCH] Build fix for CONFIG_NUMA=y && CONFIG_SMP=n Regression caused by 434d53b00d6bb7be0a1d3dcc0d0d5df6c042e164 Signed-off-by: Mike Travis Signed-off-by: Tony Luck --- diff --git a/kernel/sched.c b/kernel/sched.c index 09ca69b2c1..781870da59 100644 --- a/kernel/sched.c +++ b/kernel/sched.c @@ -7991,11 +7991,6 @@ void __init sched_init_smp(void) #else void __init sched_init_smp(void) { -#if defined(CONFIG_NUMA) - sched_group_nodes_bycpu = kzalloc(nr_cpu_ids * sizeof(void **), - GFP_KERNEL); - BUG_ON(sched_group_nodes_bycpu == NULL); -#endif sched_init_granularity(); } #endif /* CONFIG_SMP */