]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
USB: ehci saves some memory in ISO transfer descriptors
authorKarsten Wiese <fzu@wemgehoertderstaat.de>
Mon, 31 Dec 2007 05:55:05 +0000 (21:55 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 1 Feb 2008 22:35:02 +0000 (14:35 -0800)
commit3b6fcfd0664aeac6ae2fd1231f04b3ed24723c1e
tree91f6bf59435039eefcd4a931bed274a0b33882f1
parent91bc4d31e81b15aa6e2d075307b8727041f2e2d1
USB: ehci saves some memory in ISO transfer descriptors

In the EHCI driver, itd->usecs[8] is used in periodic_usecs(), indexed by
uframe.  For an ITD's unused uframes it is 0, else it contains the same
value as itd->stream->usecs.  To check if an ITD's uframe is used, we can
instead test itd->hw_transaction[uframe]:  if used, it will be nonzero no
matter what endianess is used.

This patch replaces those two uses, eliminates itd->usecs[], and saves
eight bytes from each ITD.

Signed-off-by: Karsten Wiese <fzu@wemgehoertderstaat.de>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/ehci-sched.c
drivers/usb/host/ehci.h