diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2013-06-04 15:41:15 +0530 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2013-06-19 12:58:43 +0200 |
commit | 22da956953f371c1ee7a578c31ed8c5702cb52b1 (patch) | |
tree | 3b50759bd7e0a269c1db2f2b018c96107fc72e13 /kernel/pid_namespace.c | |
parent | 4a850cbefa9592ddde3670a41c10c9576a657c43 (diff) |
sched: Optimize build_sched_domains() for saving first SD node for a cpu
We are saving first scheduling domain for a cpu in build_sched_domains() by
iterating over the nested sd->child list. We don't actually need to do it this
way.
tl will be equal to sched_domain_topology for the first iteration and so we can
set *per_cpu_ptr(d.sd, i) based on that. So, save pointer to first SD while
running the iteration loop over tl's.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/fc473527cbc4dfa0b8eeef2a59db74684eb59a83.1370436120.git.viresh.kumar@linaro.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/pid_namespace.c')
0 files changed, 0 insertions, 0 deletions