projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da7a735
)
sched: Avoid expensive initial update_cfs_load(), on UP too
author
Peter Zijlstra
<a.p.zijlstra@chello.nl>
Wed, 26 Jan 2011 12:36:03 +0000
(13:36 +0100)
committer
Ingo Molnar
<mingo@elte.hu>
Thu, 27 Jan 2011 11:48:14 +0000
(12:48 +0100)
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>
kernel/sched.c
patch
|
blob
|
blame
|
history
diff --git
a/kernel/sched.c
b/kernel/sched.c
index 78fa75394011cde5efe588af159e4ec5cf5389b5..477e1bcc63f9debeef7923bf72ebe29b20adcb1b 100644
(file)
--- 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));
}