[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1400780723-24626-1-git-send-email-manuel.schoelling@gmx.de>
Date: Thu, 22 May 2014 19:45:23 +0200
From: Manuel Schölling <manuel.schoelling@....de>
To: mingo@...hat.com
Cc: peterz@...radead.org, linux-kernel@...r.kernel.org,
kernel-janitors@...r.kernel.org,
Manuel Schölling <manuel.schoelling@....de>
Subject: [PATCH] sched: Use time_after()
To be future-proof and for better readability the time comparisons are modified
to use time_after() instead of plain, error-prone math.
Signed-off-by: Manuel Schölling <manuel.schoelling@....de>
---
kernel/sched/fair.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index 7570dd9..716360a 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -4014,7 +4014,7 @@ static void record_wakee(struct task_struct *p)
* about the boundary, really active task won't care
* about the loss.
*/
- if (jiffies > current->wakee_flip_decay_ts + HZ) {
+ if (time_after(jiffies, current->wakee_flip_decay_ts + HZ)) {
current->wakee_flips = 0;
current->wakee_flip_decay_ts = jiffies;
}
--
1.7.10.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists