Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=368059a977871def0f88a92eefb6ecc1f7b6132f
Commit:     368059a977871def0f88a92eefb6ecc1f7b6132f
Parent:     02e4bac2a5b097e23d757bf2953740b3d51b7976
Author:     Peter Zijlstra <[EMAIL PROTECTED]>
AuthorDate: Mon Oct 15 17:00:11 2007 +0200
Committer:  Ingo Molnar <[EMAIL PROTECTED]>
CommitDate: Mon Oct 15 17:00:11 2007 +0200

    sched: max_vruntime() simplification
    
    max_vruntime() simplification.
    
    Signed-off-by: Ingo Molnar <[EMAIL PROTECTED]>
    Signed-off-by: Peter Zijlstra <[EMAIL PROTECTED]>
---
 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 2bd9625..91664d6 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)
 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;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to