diff options
-rw-r--r-- | kernel/sched_fair.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c index 2bd9625fa62d..91664d665c0f 100644 --- a/kernel/sched_fair.c +++ b/kernel/sched_fair.c | |||
@@ -117,8 +117,8 @@ static inline struct task_struct *task_of(struct sched_entity *se) | |||
117 | static inline u64 | 117 | static inline u64 |
118 | max_vruntime(u64 min_vruntime, u64 vruntime) | 118 | max_vruntime(u64 min_vruntime, u64 vruntime) |
119 | { | 119 | { |
120 | if ((vruntime > min_vruntime) || | 120 | s64 delta = (s64)(vruntime - min_vruntime); |
121 | (min_vruntime > (1ULL << 61) && vruntime < (1ULL << 50))) | 121 | if (delta > 0) |
122 | min_vruntime = vruntime; | 122 | min_vruntime = vruntime; |
123 | 123 | ||
124 | return min_vruntime; | 124 | return min_vruntime; |