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)
commit9e04d3804d3ac97d8c03a41d78d0f0674b5d01e1
treee87aa9422e11e5f28020535b9f1ba095058682a7
parent2699339361a9bacb3fa663e6b8981a040cfca4ee
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