]> git.baikalelectronics.ru Git - kernel.git/commit
timer: Fix jiffies wrap behavior of round_jiffies_common()
authorBart Van Assche <bart.vanassche@gmail.com>
Tue, 21 May 2013 18:43:50 +0000 (20:43 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 28 Jun 2013 15:10:11 +0000 (17:10 +0200)
commit5d39a22b0db4a38661e58f9dab32ac274236c643
treee87aa9422e11e5f28020535b9f1ba095058682a7
parent854cc381a3d0efaca15eed98e1627cfa3fa77bd1
timer: Fix jiffies wrap behavior of round_jiffies_common()

Direct compare of jiffies related values does not work in the wrap
around case. Replace it with time_is_after_jiffies().

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Cc: Arjan van de Ven <arjan@infradead.org>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Link: http://lkml.kernel.org/r/519BC066.5080600@acm.org
Cc: stable@vger.kernel.org
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/timer.c