mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-23 15:11:16 +00:00
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>
This commit is contained in:
parent
6e1254d2c4
commit
a22d7fc187
2 changed files with 10 additions and 2 deletions
|
@ -346,6 +346,7 @@ struct rt_rq {
|
|||
unsigned long rt_nr_migratory;
|
||||
/* highest queued rt task prio */
|
||||
int highest_prio;
|
||||
int overloaded;
|
||||
};
|
||||
|
||||
/*
|
||||
|
@ -6770,6 +6771,7 @@ void __init sched_init(void)
|
|||
rq->migration_thread = NULL;
|
||||
INIT_LIST_HEAD(&rq->migration_queue);
|
||||
rq->rt.highest_prio = MAX_RT_PRIO;
|
||||
rq->rt.overloaded = 0;
|
||||
#endif
|
||||
atomic_set(&rq->nr_iowait, 0);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue