]> err.no Git - linux-2.6/commit
USB: ohci: fix 2 timers to fire at jiffies + 1s
authorRichard Kennedy <richard@rsk.demon.co.uk>
Fri, 28 Mar 2008 21:50:30 +0000 (14:50 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 2 Apr 2008 22:06:09 +0000 (15:06 -0700)
commit9cebcdc7fb10d478b22d7125b215cee3b9ea82f2
treec69a21cb09a1037c4d7a7358329eb626effb3f42
parent822470537d0fc1dee38a2a9c8b8c398bfbb332bb
USB: ohci: fix 2 timers to fire at jiffies + 1s

Code inspection discovered in 2 places timers were being incorrectly setup
using round_jiffies_relative(HZ).  The timer would then fire at time (0 <= T <
HZ).

Fix them to use round_jiffies(jiffies + HZ);

Signed-off-by: Richard Kennedy <richard@rsk.demon.co.uk>
Cc: Alan Stern <stern@rowland.harvard.edu>
Cc: David Brownell <david-b@pacbell.net>
Cc: Arjan van de Ven <arjan@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/ohci-hcd.c
drivers/usb/host/ohci-q.c