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)
committerBen Hutchings <ben@decadent.org.uk>
Sat, 27 Jul 2013 04:34:22 +0000 (05:34 +0100)
commit52ae0bb6005040a774b80dcbb138df03fdf13088
tree2dd3ef82cedf40c74df7f7b5391ca95fe9c1b471
parent5ba9a2e746033d2886d56d21b4298f5da7178d12
timer: Fix jiffies wrap behavior of round_jiffies_common()

commit 9e04d3804d3ac97d8c03a41d78d0f0674b5d01e1 upstream.

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
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
kernel/timer.c