]> git.karo-electronics.de Git - mv-sheeva.git/commit
ARM: LPC32xx: clock.c: jiffies wrapping
authorRoland Stigge <stigge@antcom.de>
Wed, 8 Feb 2012 20:41:02 +0000 (21:41 +0100)
committerOlof Johansson <olof@lixom.net>
Fri, 10 Feb 2012 00:00:34 +0000 (16:00 -0800)
commit2efee387dc7c3a6cca92f6e9250a464ae3f8aec8
treed28695cae6ea9c343f6968c31ea3c61bad86f451
parent66f32a0b356e2e4a1dc98766d50316e3315e3405
ARM: LPC32xx: clock.c: jiffies wrapping

This patch fixes the jiffies wrapping bug in clock.c.

It corrects the timeout computation based on jiffies, uses time_before() for
correct wrapping handling and replaces a binary "&" which should really be a
logical "&&" in a truth expression.

Signed-off-by: Roland Stigge <stigge@antcom.de>
Acked-by: Wolfram Sang <w.sang@pengutronix.de>
Tested-by: Wolfram Sang <w.sang@pengutronix.de>
Acked-by: Kevin Wells <kevin.wells@nxp.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
arch/arm/mach-lpc32xx/clock.c