usb: ehci: Reduce overhead of the scan_periodic loop
authorBenoit Goby <benoit@android.com>
Thu, 9 Dec 2010 02:28:39 +0000 (18:28 -0800)
committerBenoit Goby <benoit@android.com>
Thu, 9 Dec 2010 21:14:21 +0000 (13:14 -0800)
commitbad2e94f96154d3a2ac5cc8a5acdc615bc37635a
tree4e3ec4018b4e2040390839d1c78a184ce40312db
parent85f7f645fb1c386b7b01044f2402587d9beda517
usb: ehci: Reduce overhead of the scan_periodic loop

scan_periodic is called with irq disabled. Merged Alan Stern's patch
to reduce the overhead of scan_periodic:

http://article.gmane.org/gmane.linux.usb.general/37441
Here is a patch which ought to reduce the overhead of the loop. It
avoids doing the expensive call to qh_completions() more than once
for each qh.

Change-Id: I218c75a1ce21edd3d58c7e8abd3e7f75880b6ad0
Signed-off-by: Benoit Goby <benoit@android.com>
drivers/usb/host/ehci-q.c
drivers/usb/host/ehci-sched.c
drivers/usb/host/ehci.h