OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
94359f0
)
sched: fix sign check error in place_entity()
author
Ingo Molnar
<mingo@elte.hu>
Mon, 15 Oct 2007 15:00:11 +0000
(17:00 +0200)
committer
Ingo Molnar
<mingo@elte.hu>
Mon, 15 Oct 2007 15:00:11 +0000
(17:00 +0200)
fix sign check error in place_entity() - we'd get excessive
latencies due to negatives being converted to large u64's.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
kernel/sched_fair.c
patch
|
blob
|
history
diff --git
a/kernel/sched_fair.c
b/kernel/sched_fair.c
index
62a9ee8
..
2bd9625
100644
(file)
--- a/
kernel/sched_fair.c
+++ b/
kernel/sched_fair.c
@@
-483,7
+483,7
@@
place_entity(struct cfs_rq *cfs_rq, struct sched_entity *se, int initial)
if (sched_feat(NEW_FAIR_SLEEPERS))
vruntime -= sysctl_sched_latency;
- vruntime = max
(
vruntime, se->vruntime);
+ vruntime = max
_t(s64,
vruntime, se->vruntime);
}
se->vruntime = vruntime;