sched: max_vruntime() simplification

max_vruntime() simplification.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
This commit is contained in:
Peter Zijlstra 2007-10-15 17:00:11 +02:00 committed by Ingo Molnar
parent 02e4bac2a5
commit 368059a977

View file

@ -117,8 +117,8 @@ static inline struct task_struct *task_of(struct sched_entity *se)
static inline u64 static inline u64
max_vruntime(u64 min_vruntime, u64 vruntime) max_vruntime(u64 min_vruntime, u64 vruntime)
{ {
if ((vruntime > min_vruntime) || s64 delta = (s64)(vruntime - min_vruntime);
(min_vruntime > (1ULL << 61) && vruntime < (1ULL << 50))) if (delta > 0)
min_vruntime = vruntime; min_vruntime = vruntime;
return min_vruntime; return min_vruntime;