Skip to content

Commit

Permalink
sched: max_vruntime() simplification
Browse files Browse the repository at this point in the history
max_vruntime() simplification.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed Oct 15, 2007
1 parent 02e4bac commit 368059a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/sched_fair.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ static inline struct task_struct *task_of(struct sched_entity *se)
static inline u64
max_vruntime(u64 min_vruntime, u64 vruntime)
{
if ((vruntime > min_vruntime) ||
(min_vruntime > (1ULL << 61) && vruntime < (1ULL << 50)))
s64 delta = (s64)(vruntime - min_vruntime);
if (delta > 0)
min_vruntime = vruntime;

return min_vruntime;
Expand Down

0 comments on commit 368059a

Please sign in to comment.