diff options
author | Manuel Schölling <manuel.schoelling@gmx.de> | 2014-05-22 19:45:23 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2014-06-05 11:52:02 +0200 |
commit | 2538d960d0c74cdc639f05723e04a67aed1efdf9 (patch) | |
tree | 05132dfa4b4caf1c4067a09cd96557d2956a5ecc /kernel | |
parent | ed61bbc69c773465782476c7e5869fa5607fa73a (diff) | |
download | op-kernel-dev-2538d960d0c74cdc639f05723e04a67aed1efdf9.zip op-kernel-dev-2538d960d0c74cdc639f05723e04a67aed1efdf9.tar.gz |
sched/fair: Use time_after() in record_wakee()
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@gmx.de>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: http://lkml.kernel.org/r/1400780723-24626-1-git-send-email-manuel.schoelling@gmx.de
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/sched/fair.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 7a0c000..c63dde9 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -4066,7 +4066,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 >>= 1; current->wakee_flip_decay_ts = jiffies; } |