lkml.org 
[lkml]   [2006]   [Apr]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
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/

\
 
 \ /
  Last update: 2006-04-03 14:22    [W:0.278 / U:0.004 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site