sched: cleanup for alloc_rt/fair_sched_group()
commiteab172294d5e24464f332dd8e94a57a9819c81c4
authorLi Zefan <lizf@cn.fujitsu.com>
Wed, 29 Oct 2008 09:03:22 +0000 (29 17:03 +0800)
committerIngo Molnar <mingo@elte.hu>
Wed, 29 Oct 2008 10:53:26 +0000 (29 11:53 +0100)
treef8f577d52aa83b76cd7f044a8327f236bb35f835
parente946217e4fdaa67681bbabfa8e6b18641921f750
sched: cleanup for alloc_rt/fair_sched_group()

Impact: cleanup

Remove checking parent == NULL. It won't be NULLL, because we dynamically
create sub task_group only, and sub task_group always has its parent.
(root task_group is statically defined)

Also replace kmalloc_node(GFP_ZERO) with kzalloc_node().

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched.c