sched: Create for_each_sd_topology()
authorViresh Kumar <viresh.kumar@linaro.org>
Mon, 10 Jun 2013 10:57:20 +0000 (16:27 +0530)
committerIngo Molnar <mingo@kernel.org>
Wed, 19 Jun 2013 10:58:45 +0000 (12:58 +0200)
commit27723a68caf05381b0b0bc6e127da2c9e7bcb775
tree461a2096520470a40816680ca9a1b32d04acaf7d
parentc75e01288ce9c9a6b7beb6b23c07d2e4d1db8c84
sched: Create for_each_sd_topology()

For loop for traversing sched_domain_topology was used at multiple placed in
core.c. This patch removes code redundancy by creating for_each_sd_topology().

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/e0e04542f54e9464bd9da54f5ccfe62ec6c4c0bc.1370861520.git.viresh.kumar@linaro.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/core.c