From: Viresh Kumar Date: Tue, 4 Jun 2013 10:11:15 +0000 (+0530) Subject: sched: Optimize build_sched_domains() for saving first SD node for a cpu X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~61^2~25 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=22da956953f371c1ee7a578c31ed8c5702cb52b1;p=pandora-kernel.git 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 Signed-off-by: Peter Zijlstra Link: http://lkml.kernel.org/r/fc473527cbc4dfa0b8eeef2a59db74684eb59a83.1370436120.git.viresh.kumar@linaro.org Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed