Re: [PATCH] Export URB statistics for powertop.

Oliver Neukum <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
Am Mittwoch 03 Oktober 2007 schrieb Sarah Sharp:
> --- a/drivers/usb/core/hcd.c
> +++ b/drivers/usb/core/hcd.c
> @@ -1174,6 +1174,7 @@ void usb_hcd_giveback_urb (struct usb_hcd *hcd, struct urb *urb)
>  {
>         urb_unlink(hcd, urb);
>         usbmon_urb_complete (&hcd->self, urb);
> +       atomic_inc(&urb->dev->urb_cnt);
>         usb_unanchor_urb(urb);
>  
>         /* pass ownership to the completion handler */

Every URB that is successfully submitted will pass through this
point. Using the correspondance you could move the
increment into usb_submit_urb(), which is less likely to run in
interrupt context.

	Regards
		Oliver

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.