]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
USB: EHCI: use hrtimer for unlinking empty async QHs
authorAlan Stern <stern@rowland.harvard.edu>
Wed, 11 Jul 2012 15:22:53 +0000 (11:22 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Jul 2012 23:56:47 +0000 (16:56 -0700)
commit32830f207691176234b4c4dd17f0d7ab6d87d94b
tree4b352a92dfc720418288c541d87e93594f97f859
parent3c273a056bf46167f0a1309c2ba72282a17d2541
USB: EHCI: use hrtimer for unlinking empty async QHs

This patch (as1583) changes ehci-hcd to use an hrtimer event for
unlinking empty (unused) async QHs instead of using a kernel timer.

The check for empty QHs is moved to a new routine, where it doesn't
require going through an entire scan of both the async and periodic
schedules.  And it can unlink multiple QHs at once, unlike the current
code.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci-hcd.c
drivers/usb/host/ehci-hub.c
drivers/usb/host/ehci-q.c
drivers/usb/host/ehci-timer.c
drivers/usb/host/ehci.h