[PATCH] UHCI: Eliminate the TD-removal list
This patch (as682) gets rid of the TD-removal list in uhci-hcd. It is no longer needed because now TDs are not freed until we know the hardware isn't using them. It also simplifies the code for adding and removing TDs to/from URBs. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
a0b458b64b
commit
04538a255a
@@ -228,7 +228,6 @@ struct uhci_td {
|
||||
dma_addr_t dma_handle;
|
||||
|
||||
struct list_head list;
|
||||
struct list_head remove_list;
|
||||
|
||||
int frame; /* for iso: what frame? */
|
||||
struct list_head fl_list;
|
||||
@@ -420,10 +419,6 @@ struct uhci_hcd {
|
||||
unsigned long resuming_ports;
|
||||
unsigned long ports_timeout; /* Time to stop signalling */
|
||||
|
||||
/* List of TDs that are done, but waiting to be freed (race) */
|
||||
struct list_head td_remove_list;
|
||||
unsigned int td_remove_age; /* Age in frames */
|
||||
|
||||
struct list_head idle_qh_list; /* Where the idle QHs live */
|
||||
|
||||
int rh_numports; /* Number of root-hub ports */
|
||||
|
Reference in New Issue
Block a user