From: Peter Zijlstra Date: Wed, 26 Jan 2011 12:36:03 +0000 (+0100) Subject: sched: Avoid expensive initial update_cfs_load(), on UP too X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6ea72f12069306b235151c5b05ac0cca7e1dedfa;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git sched: Avoid expensive initial update_cfs_load(), on UP too Fix the build on UP. Signed-off-by: Peter Zijlstra Cc: Paul Turner LKML-Reference: <20110122044852.102126037@google.com> Signed-off-by: Ingo Molnar --- diff --git a/kernel/sched.c b/kernel/sched.c index 78fa75394011..477e1bcc63f9 100644 --- a/kernel/sched.c +++ b/kernel/sched.c @@ -7922,7 +7922,9 @@ static void init_cfs_rq(struct cfs_rq *cfs_rq, struct rq *rq) #ifdef CONFIG_FAIR_GROUP_SCHED cfs_rq->rq = rq; /* allow initial update_cfs_load() to truncate */ +#ifdef CONFIG_SMP cfs_rq->load_stamp = 1; +#endif #endif cfs_rq->min_vruntime = (u64)(-(1LL << 20)); }