Skip to content

Commit

Permalink
[PATCH] sched_domai: Don't use GFP_ATOMIC
Browse files Browse the repository at this point in the history
Replace GFP_ATOMIC allocation for sched_group_nodes with GFP_KERNEL based
allocation.

Signed-off-by: Srivatsa Vaddagiri <[email protected]
Cc: Nick Piggin <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: "Siddha, Suresh B" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Srivatsa Vaddagiri authored and Linus Torvalds committed Jun 28, 2006
1 parent 51888ca commit d3a5aa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d3a5aa9

Please sign in to comment.