From: Srivatsa Vaddagiri Date: Tue, 27 Jun 2006 09:54:39 +0000 (-0700) Subject: [PATCH] sched_domai: Don't use GFP_ATOMIC X-Git-Tag: v2.6.18-rc1~507 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3a5aa9858cc9cecc3aadac7311d376c7c9e101a;p=linux-2.6 [PATCH] sched_domai: Don't use GFP_ATOMIC Replace GFP_ATOMIC allocation for sched_group_nodes with GFP_KERNEL based allocation. Signed-off-by: Srivatsa Vaddagiri Cc: Ingo Molnar Cc: "Siddha, Suresh B" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/sched.c b/kernel/sched.c index 77a2ec55ef..e93c75ffdc 100644 --- a/kernel/sched.c +++ b/kernel/sched.c @@ -5880,7 +5880,7 @@ static int build_sched_domains(const cpumask_t *cpu_map) * Allocate the per-node list of sched groups */ sched_group_nodes = kzalloc(sizeof(struct sched_group*)*MAX_NUMNODES, - GFP_ATOMIC); + GFP_KERNEL); if (!sched_group_nodes) { printk(KERN_WARNING "Can not alloc sched group node list\n"); return -ENOMEM;