]> err.no Git - linux-2.6/commit
USB: Export URB statistics for powertop
authorSarah Sharp <sarah.a.sharp@intel.com>
Wed, 3 Oct 2007 21:56:03 +0000 (14:56 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 12 Oct 2007 21:55:30 +0000 (14:55 -0700)
commit4d59d8a11383ebf0e0260ee481a4e766959fd7d9
tree240cf81cc56896a69c1467b7c8bc4f3f4022c3fd
parent437f375f262417b484f28007c3e8d21bd01d0e01
USB: Export URB statistics for powertop

powertop currently tracks interrupts generated by uhci, ehci, and ohci,
but it has no way of telling which USB device to blame USB bus activity on.
This patch exports the number of URBs that are submitted for a given device.
Cat the file 'urbnum' in /sys/bus/usb/devices/.../

Signed-off-by: Sarah Sharp <sarah.a.sharp@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/hcd.c
drivers/usb/core/sysfs.c
drivers/usb/core/usb.c
include/linux/usb.h