aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched_fair.c
diff options
context:
space:
mode:
authorHidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>2008-04-15 01:04:23 -0400
committerIngo Molnar <mingo@elte.hu>2008-04-19 13:45:00 -0400
commit1d3504fcf5606579d60b649d19f44b3871c1ddae (patch)
tree001a1b57bd7f123fd51361d78d9277b2dcac1bf3 /kernel/sched_fair.c
parent4d5f35533fb9b2cd553cec6611195bcbfb7ffd84 (diff)
sched, cpuset: customize sched domains, core
[rebased for sched-devel/latest] - Add a new cpuset file, having levels: sched_relax_domain_level - Modify partition_sched_domains() and build_sched_domains() to take attributes parameter passed from cpuset. - Fill newidle_idx for node domains which currently unused but might be required if sched_relax_domain_level become higher. - We can change the default level by boot option 'relax_domain_level='. Signed-off-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched_fair.c')
-rw-r--r--kernel/sched_fair.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c
index de4250c53a19..b43748efaa7f 100644
--- a/kernel/sched_fair.c
+++ b/kernel/sched_fair.c
@@ -940,7 +940,9 @@ static int wake_idle(int cpu, struct task_struct *p)
940 return cpu; 940 return cpu;
941 941
942 for_each_domain(cpu, sd) { 942 for_each_domain(cpu, sd) {
943 if (sd->flags & SD_WAKE_IDLE) { 943 if ((sd->flags & SD_WAKE_IDLE)
944 || ((sd->flags & SD_WAKE_IDLE_FAR)
945 && !task_hot(p, task_rq(p)->clock, sd))) {
944 cpus_and(tmp, sd->span, p->cpus_allowed); 946 cpus_and(tmp, sd->span, p->cpus_allowed);
945 for_each_cpu_mask(i, tmp) { 947 for_each_cpu_mask(i, tmp) {
946 if (idle_cpu(i)) { 948 if (idle_cpu(i)) {