Re: [PATCH 2/3] sched: don't sd->child to NULL when it is already NULL

2013-06-10 Thread Viresh Kumar
On 10 June 2013 16:27, Viresh Kumar wrote: Yes subject should be: sched: don't set sd->child to NULL when it is already NULL -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.

[PATCH 2/3] sched: don't sd->child to NULL when it is already NULL

2013-06-10 Thread Viresh Kumar
Memory for sd is allocated with kzalloc_node() which will initialize its fields with zero. In build_sched_domain() we are setting sd->child to child even if child is NULL, which isn't required. Lets do it only if child isn't NULL. Signed-off-by: Viresh Kumar --- kernel/sched/core.c | 2 +- 1 fi