sched: use the old min_vruntime when normalizing on dequeue
authorDima Zavin <dima@android.com>
Wed, 29 Sep 2010 00:35:31 +0000 (17:35 -0700)
committerColin Cross <ccross@android.com>
Mon, 4 Oct 2010 19:08:05 +0000 (12:08 -0700)
commit776dd2c87482de547f1ebf06e2d496ade39d1e1a
treea78a9f85466966b9ff97c4fa8b32d3809db71811
parentcbb658990449df002eb9775f0b5ad104a7114b5f
sched: use the old min_vruntime when normalizing on dequeue

After pulling the thread off the run-queue during a cgroup change,
the cfs_rq.min_vruntime gets recalculated. The dequeued thread's vruntime
then gets normalized to this new value. This can then lead to the thread
getting an unfair boost in the new group if the vruntime of the next
task in the old run-queue was way further ahead.

Cc: Arve Hjønnevåg <arve@android.com>
Signed-off-by: Dima Zavin <dima@android.com>
kernel/sched_fair.c