login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
March
»
27
Re: [patch] usb ohci : fix 2 timers to fire at jiffies + 1s
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
David Brownell <david-b@...>
To: Richard Kennedy <richard@...>
Cc: linux-usb <linux-usb@...>, lkml <linux-kernel@...>, Alan Stern <stern@...>
Subject:
Re: [patch] usb ohci : fix 2 timers to fire at jiffies + 1s
Date: Thursday, March 27, 2008 - 2:53 pm
On Wednesday 26 March 2008, Richard Kennedy wrote:
quoted text
> 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>
Acked-by: David Brownell <dbrownell@users.sourceforge.net>
quoted text
> --- > > compiled on latest v2.6.25-rc7-11 git head but not otherwise tested. > Richard > > diff --git a/drivers/usb/host/ohci-hcd.c b/drivers/usb/host/ohci-hcd.c > index dd4798e..33f1c1c 100644 > --- a/drivers/usb/host/ohci-hcd.c > +++ b/drivers/usb/host/ohci-hcd.c > @@ -467,7 +467,7 @@ static void unlink_watchdog_func(unsigned long _ohci) > out: > kfree(seen); > if (ohci->eds_scheduled) > - mod_timer(&ohci->unlink_watchdog, round_jiffies_relative(HZ)); > + mod_timer(&ohci->unlink_watchdog, round_jiffies(jiffies + HZ)); > done: > spin_unlock_irqrestore(&ohci->lock, flags); > } > diff --git a/drivers/usb/host/ohci-q.c b/drivers/usb/host/ohci-q.c > index 5181732..9c9f3b5 100644 > --- a/drivers/usb/host/ohci-q.c > +++ b/drivers/usb/host/ohci-q.c > @@ -169,7 +169,7 @@ static int ed_schedule (struct ohci_hcd *ohci, struct ed *ed) > if (quirk_zfmicro(ohci) > && (ed->type == PIPE_INTERRUPT) > && !(ohci->eds_scheduled++)) > - mod_timer(&ohci->unlink_watchdog, round_jiffies_relative(HZ)); > + mod_timer(&ohci->unlink_watchdog, round_jiffies(jiffies + HZ)); > wmb (); > > /* we care about rm_list when setting CLE/BLE in case the HC was at > >
--
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
ohci : strange looking use of round_jiffies_relative. possib...
, Richard Kennedy
, (Wed Mar 26, 10:38 am)
Re: ohci : strange looking use of round_jiffies_relative. po...
, Alan Stern
, (Wed Mar 26, 11:37 am)
[patch] usb ohci : fix 2 timers to fire at jiffies + 1s
, Richard Kennedy
, (Wed Mar 26, 12:32 pm)
Re: [patch] usb ohci : fix 2 timers to fire at jiffies + 1s
, David Brownell
, (Thu Mar 27, 2:53 pm)
Re: ohci : strange looking use of round_jiffies_relative. po...
, Richard Kennedy
, (Wed Mar 26, 11:46 am)
Re: ohci : strange looking use of round_jiffies_relative. po...
, Mike Nuss
, (Wed Mar 26, 2:06 pm)
Re: ohci : strange looking use of round_jiffies_relative. po...
, David Brownell
, (Thu Mar 27, 2:55 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg Kroah-Hartman
[PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO
Linus Torvalds
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
David Newall
Re: Slow DOWN, please!!!
Ian Campbell
Re: [PATCH] x86: Construct 32 bit boot time page tables in native format.
netbsd-tech-kern
:
Matthias Scheler
Re: HEADS UP: timecounters (branch simonb-timecounters) merged into -current
Greg Troxel
Re: Interface to change NFS exports
Thor Lancelot Simon
metadata cache and memory fragmentation
YAMAMOTO Takashi
amap memory allocation
git
:
linux-netdev
:
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Gerrit Renker
[PATCH 0/37] dccp: Feature negotiation - last call for comments
David Miller
[GIT]: Networking
Dushan Tcholich
Re: ksoftirqd high cpu load on kernels 2.6.24 to 2.6.27-rc1-mm1
Colocation donated by:
Who's online
There are currently
1 user
and
811 guests
online.
Online users
strcmp
Syndicate