]> git.baikalelectronics.ru Git - kernel.git/commit
USB: EHCI: create per-TT bandwidth tables
authorAlan Stern <stern@rowland.harvard.edu>
Sat, 12 Oct 2013 02:16:21 +0000 (22:16 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Oct 2013 18:04:38 +0000 (11:04 -0700)
commitdb2c53a446fcadda3bbe2422aa2c316350be3373
tree2c5b2ab13585d39355df7a4776c6d8dc3b4f3529
parent9436ec51cac28ddd62174d6b08335f78d7a3ea48
USB: EHCI: create per-TT bandwidth tables

This patch continues the scheduling changes in ehci-hcd by adding a
table to store the bandwidth allocation below each TT.  This will
speed up the scheduling code, as it will no longer need to read
through the entire schedule to compute the bandwidth currently in use.

Properly speaking, the FS/LS budget calculations should be done in
terms of full-speed bytes per microframe, as described in the USB-2
spec.  However the driver currently uses microseconds per microframe,
and the scheduling code isn't robust enough at this point to change
over.  For the time being, we leave the calculations as they are.

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