mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-27 03:10:50 +07:00
sched: fix sign check error in place_entity()
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>
This commit is contained in:
parent
94359f05cb
commit
b8487b9241
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user