diff options
author | Karsten Wiese <fzu@wemgehoertderstaat.de> | 2007-12-31 00:55:05 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-02-01 17:35:02 -0500 |
commit | 3b6fcfd0664aeac6ae2fd1231f04b3ed24723c1e (patch) | |
tree | 91f6bf59435039eefcd4a931bed274a0b33882f1 /drivers/usb/host/ehci.h | |
parent | 91bc4d31e81b15aa6e2d075307b8727041f2e2d1 (diff) |
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>
Diffstat (limited to 'drivers/usb/host/ehci.h')
-rw-r--r-- | drivers/usb/host/ehci.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/usb/host/ehci.h b/drivers/usb/host/ehci.h index f83472856a80..42969e9d8c44 100644 --- a/drivers/usb/host/ehci.h +++ b/drivers/usb/host/ehci.h | |||
@@ -602,7 +602,6 @@ struct ehci_itd { | |||
602 | unsigned frame; /* where scheduled */ | 602 | unsigned frame; /* where scheduled */ |
603 | unsigned pg; | 603 | unsigned pg; |
604 | unsigned index[8]; /* in urb->iso_frame_desc */ | 604 | unsigned index[8]; /* in urb->iso_frame_desc */ |
605 | u8 usecs[8]; | ||
606 | } __attribute__ ((aligned (32))); | 605 | } __attribute__ ((aligned (32))); |
607 | 606 | ||
608 | /*-------------------------------------------------------------------------*/ | 607 | /*-------------------------------------------------------------------------*/ |