sched: Implement demand based update_cfs_load()
authorPaul Turner <pjt@google.com>
Mon, 15 Nov 2010 23:47:08 +0000 (15:47 -0800)
committerIngo Molnar <mingo@elte.hu>
Thu, 18 Nov 2010 12:27:49 +0000 (13:27 +0100)
commit3b3d190ec3683d568fd2ebaead5e1ec7f97b6e37
tree6839bc473200dcb69c5de998921684ac569ce18b
parentc66eaf619c0c7937e9ded160ae83b5a7a6b19b56
sched: Implement demand based update_cfs_load()

When the system is busy, dilation of rq->next_balance makes lb->update_shares()
insufficiently frequent for threads which don't sleep (no dequeue/enqueue
updates).  Adjust for this by making demand based updates based on the
accumulation of execution time sufficient to wrap our averaging window.

Signed-off-by: Paul Turner <pjt@google.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <20101115234938.291159744@google.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched.c
kernel/sched_fair.c