Commit d4f03d86 authored by David Brownell's avatar David Brownell Committed by Greg Kroah-Hartman

misc hcd cleanup

  
This is minor cleanup; pulls #includes out of files
that aren't intended to compile by themselves.

ehci bandwidth recording
  
Here's a minor update to the EHCI interrupt scheduler,
recording the bandwidth used by an URB for usbfs.
parent 58e20477
...@@ -44,6 +44,7 @@ ...@@ -44,6 +44,7 @@
#include <linux/usb.h> #include <linux/usb.h>
#include "../hcd.h" #include "../hcd.h"
#include <asm/byteorder.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/irq.h> #include <asm/irq.h>
#include <asm/system.h> #include <asm/system.h>
......
...@@ -18,8 +18,6 @@ ...@@ -18,8 +18,6 @@
/* this file is part of ehci-hcd.c */ /* this file is part of ehci-hcd.c */
#include <asm/byteorder.h>
/*-------------------------------------------------------------------------*/ /*-------------------------------------------------------------------------*/
/* /*
......
...@@ -18,8 +18,6 @@ ...@@ -18,8 +18,6 @@
/* this file is part of ehci-hcd.c */ /* this file is part of ehci-hcd.c */
#include <asm/byteorder.h>
/*-------------------------------------------------------------------------*/ /*-------------------------------------------------------------------------*/
/* /*
......
...@@ -18,8 +18,6 @@ ...@@ -18,8 +18,6 @@
/* this file is part of ehci-hcd.c */ /* this file is part of ehci-hcd.c */
#include <asm/byteorder.h>
/*-------------------------------------------------------------------------*/ /*-------------------------------------------------------------------------*/
/* /*
......
...@@ -20,8 +20,6 @@ ...@@ -20,8 +20,6 @@
/*-------------------------------------------------------------------------*/ /*-------------------------------------------------------------------------*/
#include "ehci.h"
/* /*
* EHCI scheduled transaction support: interrupt, iso, split iso * EHCI scheduled transaction support: interrupt, iso, split iso
* These are called "periodic" transactions in the EHCI spec. * These are called "periodic" transactions in the EHCI spec.
...@@ -395,6 +393,9 @@ static int intr_submit ( ...@@ -395,6 +393,9 @@ static int intr_submit (
frame += period; frame += period;
} while (frame < ehci->periodic_size); } while (frame < ehci->periodic_size);
/* update bandwidth utilization records (for usbfs) */
usb_claim_bandwidth (urb->dev, urb, usecs, 0);
/* maybe enable periodic schedule processing */ /* maybe enable periodic schedule processing */
if (!ehci->periodic_urbs++) { if (!ehci->periodic_urbs++) {
u32 cmd; u32 cmd;
......
...@@ -8,8 +8,6 @@ ...@@ -8,8 +8,6 @@
* $Id: ohci-q.c,v 1.6 2002/01/19 00:23:15 dbrownell Exp $ * $Id: ohci-q.c,v 1.6 2002/01/19 00:23:15 dbrownell Exp $
*/ */
#include <asm/byteorder.h>
static void urb_free_priv (struct ohci_hcd *hc, urb_priv_t *urb_priv) static void urb_free_priv (struct ohci_hcd *hc, urb_priv_t *urb_priv)
{ {
int last = urb_priv->length - 1; int last = urb_priv->length - 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment