Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 115785
b: refs/heads/master
c: f0d781d
h: refs/heads/master
i:
  115783: bbf1262
v: v3
  • Loading branch information
Yi Yang authored and Greg Kroah-Hartman committed Oct 17, 2008
1 parent 40de845 commit 20620da
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e58dcebcd83b5902411e747ee7807219dee6bcf2
refs/heads/master: f0d781d59cb621e1795d510039df973d0f8b23fc
12 changes: 7 additions & 5 deletions trunk/drivers/usb/host/ehci.h
Original file line number Diff line number Diff line change
Expand Up @@ -181,14 +181,16 @@ timer_action (struct ehci_hcd *ehci, enum ehci_timer_action action)
* the async ring; just the I/O watchdog. Note that if a
* SHRINK were pending, OFF would never be requested.
*/
if (timer_pending(&ehci->watchdog)
&& ((BIT(TIMER_ASYNC_SHRINK) | BIT(TIMER_ASYNC_OFF))
& ehci->actions))
return;
enum ehci_timer_action oldactions = ehci->actions;

if (!test_and_set_bit (action, &ehci->actions)) {
unsigned long t;

if (timer_pending(&ehci->watchdog)
&& ((BIT(TIMER_ASYNC_SHRINK) | BIT(TIMER_ASYNC_OFF))
& oldactions))
return;

switch (action) {
case TIMER_IO_WATCHDOG:
t = EHCI_IO_JIFFIES;
Expand All @@ -204,7 +206,7 @@ timer_action (struct ehci_hcd *ehci, enum ehci_timer_action action)
t = DIV_ROUND_UP(EHCI_SHRINK_FRAMES * HZ, 1000) + 1;
break;
}
mod_timer(&ehci->watchdog, t + jiffies);
mod_timer(&ehci->watchdog, round_jiffies(t + jiffies));
}
}

Expand Down

0 comments on commit 20620da

Please sign in to comment.