]> git.karo-electronics.de Git - karo-tx-linux.git/commit
fix jiffy calculations in calibrate_delay_direct to handle overflow
authorTim Deegan <Tim.Deegan@citrix.com>
Thu, 10 Feb 2011 08:50:41 +0000 (08:50 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 21 Mar 2011 19:44:55 +0000 (12:44 -0700)
commit66622d09ac2597d858ecbcf1a22c03f8a069638a
tree2c35950560790fe36c15fd1942a2d124ea1cedab
parent61f5f3c07b38a55de0e6ed1f6e412790366a9068
fix jiffy calculations in calibrate_delay_direct to handle overflow

commit 70a062286b9dfcbd24d2e11601aecfead5cf709a upstream.

Fixes a hang when booting as dom0 under Xen, when jiffies can be
quite large by the time the kernel init gets this far.

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
[jbeulich@novell.com: !time_after() -> time_before_eq() as suggested by Jiri Slaby]
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Cc: Jiri Slaby <jslaby@suse.cz>
Cc: Jeremy Fitzhardinge <jeremy@goop.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
init/calibrate.c