Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 175594
b: refs/heads/master
c: dfc12eb
h: refs/heads/master
v: v3
  • Loading branch information
Phil Carmody authored and Ingo Molnar committed Dec 10, 2009
1 parent 3469904 commit e98dced
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4ca3ef71f54655af98b66e8ff308a47a2a580a53
refs/heads/master: dfc12eb26a285df316be68a808af86964f3bff86
8 changes: 6 additions & 2 deletions trunk/kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -9855,13 +9855,15 @@ int alloc_fair_sched_group(struct task_group *tg, struct task_group *parent)
se = kzalloc_node(sizeof(struct sched_entity),
GFP_KERNEL, cpu_to_node(i));
if (!se)
goto err;
goto err_free_rq;

init_tg_cfs_entry(tg, cfs_rq, se, i, 0, parent->se[i]);
}

return 1;

err_free_rq:
kfree(cfs_rq);
err:
return 0;
}
Expand Down Expand Up @@ -9943,13 +9945,15 @@ int alloc_rt_sched_group(struct task_group *tg, struct task_group *parent)
rt_se = kzalloc_node(sizeof(struct sched_rt_entity),
GFP_KERNEL, cpu_to_node(i));
if (!rt_se)
goto err;
goto err_free_rq;

init_tg_rt_entry(tg, rt_rq, rt_se, i, 0, parent->rt_se[i]);
}

return 1;

err_free_rq:
kfree(rt_rq);
err:
return 0;
}
Expand Down

0 comments on commit e98dced

Please sign in to comment.