USB: EHCI: start new isochronous streams ASAP
authorAlan Stern <stern@rowland.harvard.edu>
Fri, 11 Oct 2013 15:29:36 +0000 (11:29 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Oct 2013 18:04:38 +0000 (11:04 -0700)
commita393a807d0c805e7c723315ff0e88a857055e9c6
tree7f9b51611b96a2a306571b80bf452d2a47dd9792
parentb35c5009bbf619d8885b4b3c8b102d09002acfe5
USB: EHCI: start new isochronous streams ASAP

This patch changes the initial delay before the startup of a newly
scheduled isochronous stream.  Currently the stream doesn't start
for at least 5 ms (40 microframes).  This value is just an estimate;
it has no real justification.

Instead, we can start the stream as soon as possible after the
scheduling computations are complete.  Essentially this requires
nothing more than reading the frame counter after the stream is
scheduled, instead of before.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci-sched.c