summaryrefslogtreecommitdiffstats
path: root/drivers/usb/host
diff options
context:
space:
mode:
authorSarah Sharp2009-11-03 22:06:40 +0100
committerGreg Kroah-Hartman2009-12-11 20:55:17 +0100
commit3c67d899cde32099bfc484f6ccc9b90c2e0c9fc8 (patch)
tree52471a63e47aaded69cf8d5d066137b7c4449d37 /drivers/usb/host
parentUSB: xhci: Add watchdog timer for URB cancellation. (diff)
downloadkernel-qcow2-linux-3c67d899cde32099bfc484f6ccc9b90c2e0c9fc8.tar.gz
kernel-qcow2-linux-3c67d899cde32099bfc484f6ccc9b90c2e0c9fc8.tar.xz
kernel-qcow2-linux-3c67d899cde32099bfc484f6ccc9b90c2e0c9fc8.zip
USB: xhci: Remove unused HCD statistics code.
CONFIG_USB_HCD_STAT was used in an abandoned patch to track host controller throughput statistics. Since CONFIG_USB_HCD_STAT will never be defined, remove code that can never run. Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/host')
-rw-r--r--drivers/usb/host/xhci-ring.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c
index 9541e88df68f..aaed076bae37 100644
--- a/drivers/usb/host/xhci-ring.c
+++ b/drivers/usb/host/xhci-ring.c
@@ -526,9 +526,6 @@ static void handle_stopped_endpoint(struct xhci_hcd *xhci,
struct xhci_td *last_unlinked_td;
struct xhci_dequeue_state deq_state;
-#ifdef CONFIG_USB_HCD_STAT
- ktime_t stop_time = ktime_get();
-#endif
memset(&deq_state, 0, sizeof(deq_state));
slot_id = TRB_TO_SLOT_ID(trb->generic.field[3]);
@@ -593,10 +590,6 @@ static void handle_stopped_endpoint(struct xhci_hcd *xhci,
list_del(&cur_td->cancelled_td_list);
/* Clean up the cancelled URB */
-#ifdef CONFIG_USB_HCD_STAT
- hcd_stat_update(xhci->tp_stat, cur_td->urb->actual_length,
- ktime_sub(stop_time, cur_td->start_time));
-#endif
/* Doesn't matter what we pass for status, since the core will
* just overwrite it (because the URB has been unlinked).
*/