diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2011-01-26 07:36:03 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2011-01-27 06:48:14 -0500 |
commit | 6ea72f12069306b235151c5b05ac0cca7e1dedfa (patch) | |
tree | e4fc438bd781bfdd38bfd6f4ac552f3fb5cf250b /kernel/sched.c | |
parent | da7a735e51f9622eb3e1672594d4a41da01d7e4f (diff) |
sched: Avoid expensive initial update_cfs_load(), on UP too
Fix the build on UP.
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Turner <pjt@google.com>
LKML-Reference: <20110122044852.102126037@google.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 78fa75394011..477e1bcc63f9 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -7922,8 +7922,10 @@ static void init_cfs_rq(struct cfs_rq *cfs_rq, struct rq *rq) | |||
7922 | #ifdef CONFIG_FAIR_GROUP_SCHED | 7922 | #ifdef CONFIG_FAIR_GROUP_SCHED |
7923 | cfs_rq->rq = rq; | 7923 | cfs_rq->rq = rq; |
7924 | /* allow initial update_cfs_load() to truncate */ | 7924 | /* allow initial update_cfs_load() to truncate */ |
7925 | #ifdef CONFIG_SMP | ||
7925 | cfs_rq->load_stamp = 1; | 7926 | cfs_rq->load_stamp = 1; |
7926 | #endif | 7927 | #endif |
7928 | #endif | ||
7927 | cfs_rq->min_vruntime = (u64)(-(1LL << 20)); | 7929 | cfs_rq->min_vruntime = (u64)(-(1LL << 20)); |
7928 | } | 7930 | } |
7929 | 7931 | ||