Messages in this thread Patch in this message | | | Date | Sun, 2 Apr 2006 00:25:51 +0530 | From | Srivatsa Vaddagiri <> | Subject | [PATCH 2.6.16-mm2 2/4] sched_domain: Don't use GFP_ATOMIC |
| |
Patch below (against 2.6.16-mm2) replaces GFP_ATOMIC allocation for sched_group_nodes with GFP_KERNEL based allocation.
Signed-off-by: Srivatsa Vaddagiri <vatsa@in.ibm.com
diff -puN kernel/sched.c~sd_dontusegfpatomic kernel/sched.c --- linux-2.6.16-mm2/kernel/sched.c~sd_dontusegfpatomic 2006-04-01 23:39:01.000000000 +0530 +++ linux-2.6.16-mm2-root/kernel/sched.c 2006-04-01 23:39:14.000000000 +0530 @@ -6121,7 +6121,7 @@ static int build_sched_domains(const cpu * 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; _
-- Regards, vatsa - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |