Commit e0a3db1a authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] fix for CPU scheduler load distribution

From: Ingo Molnar <mingo@elte.hu>

It makes hot-balancing happen in the 'busy tick' case as well, which should
spread out processes more agressively.
parent 91b79ba7
...@@ -1047,7 +1047,7 @@ static void load_balance(runqueue_t *this_rq, int idle, unsigned long cpumask) ...@@ -1047,7 +1047,7 @@ static void load_balance(runqueue_t *this_rq, int idle, unsigned long cpumask)
*/ */
#define CAN_MIGRATE_TASK(p,rq,this_cpu) \ #define CAN_MIGRATE_TASK(p,rq,this_cpu) \
((jiffies - (p)->last_run > cache_decay_ticks) && \ ((!idle || (jiffies - (p)->last_run > cache_decay_ticks)) && \
!task_running(rq, p) && \ !task_running(rq, p) && \
((p)->cpus_allowed & (1UL << (this_cpu)))) ((p)->cpus_allowed & (1UL << (this_cpu))))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment