aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
authorGregory Haskins <ghaskins@novell.com>2008-01-25 15:08:12 -0500
committerIngo Molnar <mingo@elte.hu>2008-01-25 15:08:12 -0500
commita22d7fc187ed996b66d8439db27b2303f79a8e7b (patch)
tree44845eaac2aa44b185d0663d689fea29d94ea5ff /kernel/sched.c
parent6e1254d2c41215da27025add8900ed187bca121d (diff)
sched: wake-balance fixes
We have logic to detect whether the system has migratable tasks, but we are not using it when deciding whether to push tasks away. So we add support for considering this new information. Signed-off-by: Gregory Haskins <ghaskins@novell.com> Signed-off-by: Steven Rostedt <srostedt@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched.c')
-rw-r--r--kernel/sched.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 3344ba776b97..c591abd9ca38 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -346,6 +346,7 @@ struct rt_rq {
346 unsigned long rt_nr_migratory; 346 unsigned long rt_nr_migratory;
347 /* highest queued rt task prio */ 347 /* highest queued rt task prio */
348 int highest_prio; 348 int highest_prio;
349 int overloaded;
349}; 350};
350 351
351/* 352/*
@@ -6770,6 +6771,7 @@ void __init sched_init(void)
6770 rq->migration_thread = NULL; 6771 rq->migration_thread = NULL;
6771 INIT_LIST_HEAD(&rq->migration_queue); 6772 INIT_LIST_HEAD(&rq->migration_queue);
6772 rq->rt.highest_prio = MAX_RT_PRIO; 6773 rq->rt.highest_prio = MAX_RT_PRIO;
6774 rq->rt.overloaded = 0;
6773#endif 6775#endif
6774 atomic_set(&rq->nr_iowait, 0); 6776 atomic_set(&rq->nr_iowait, 0);
6775 6777