aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched_fair.c
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2008-05-05 23:56:17 +0200
committerIngo Molnar <mingo@elte.hu>2008-05-05 23:56:17 +0200
commita992241de614dd2b7c97a9ba64e28c0e563f19bf (patch)
treea76f646188c23aad856b43ffc841a0ec08613398 /kernel/sched_fair.c
parent5717922a1b8cc477f45a0f4f11fe619392ba7133 (diff)
downloadkernel_samsung_smdk4412-a992241de614dd2b7c97a9ba64e28c0e563f19bf.tar.gz
kernel_samsung_smdk4412-a992241de614dd2b7c97a9ba64e28c0e563f19bf.tar.bz2
kernel_samsung_smdk4412-a992241de614dd2b7c97a9ba64e28c0e563f19bf.zip
sched: fix normalized sleeper
Normalized sleeper uses calc_delta*() which requires that the rq load is already updated, so move account_entity_enqueue() before place_entity() Tested-by: Frans Pop <elendil@planet.nl> Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched_fair.c')
-rw-r--r--kernel/sched_fair.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c
index 89fa32b4edf..1295ddc5656 100644
--- a/kernel/sched_fair.c
+++ b/kernel/sched_fair.c
@@ -682,6 +682,7 @@ enqueue_entity(struct cfs_rq *cfs_rq, struct sched_entity *se, int wakeup)
* Update run-time statistics of the 'current'.
*/
update_curr(cfs_rq);
+ account_entity_enqueue(cfs_rq, se);
if (wakeup) {
place_entity(cfs_rq, se, 0);
@@ -692,7 +693,6 @@ enqueue_entity(struct cfs_rq *cfs_rq, struct sched_entity *se, int wakeup)
check_spread(cfs_rq, se);
if (se != cfs_rq->curr)
__enqueue_entity(cfs_rq, se);
- account_entity_enqueue(cfs_rq, se);
}
static void update_avg(u64 *avg, u64 sample)