Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 167575
b: refs/heads/master
c: 36f2132
h: refs/heads/master
i:
  167573: 3973e0e
  167571: cdc8a8d
  167567: 461dd64
v: v3
  • Loading branch information
Sarah Sharp authored and Greg Kroah-Hartman committed Oct 14, 2009
1 parent b7cfc0b commit 188ccea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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: 12148da6722be3b44c2220206b6ccb80d2d9d8f8
refs/heads/master: 36f21329d217016f0f212f0752ae595b4a76754d
12 changes: 6 additions & 6 deletions trunk/drivers/usb/host/ehci-sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -1400,6 +1400,10 @@ iso_stream_schedule (
goto fail;
}

period = urb->interval;
if (!stream->highspeed)
period <<= 3;

now = ehci_readl(ehci, &ehci->regs->frame_index) % mod;

/* when's the last uframe this urb could start? */
Expand All @@ -1417,8 +1421,8 @@ iso_stream_schedule (

/* Fell behind (by up to twice the slop amount)? */
if (start >= max - 2 * 8 * SCHEDULE_SLOP)
start += stream->interval * DIV_ROUND_UP(
max - start, stream->interval) - mod;
start += period * DIV_ROUND_UP(
max - start, period) - mod;

/* Tried to schedule too far into the future? */
if (unlikely((start + sched->span) >= max)) {
Expand All @@ -1441,10 +1445,6 @@ iso_stream_schedule (

/* NOTE: assumes URB_ISO_ASAP, to limit complexity/bugs */

period = urb->interval;
if (!stream->highspeed)
period <<= 3;

/* find a uframe slot with enough bandwidth */
for (; start < (stream->next_uframe + period); start++) {
int enough_space;
Expand Down

0 comments on commit 188ccea

Please sign in to comment.