uhci: use bottom half
commit9a16c5950d9ce38671a1ac259dcde3e707767922
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 11 May 2012 07:33:07 +0000 (11 09:33 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 7 Jun 2012 08:02:20 +0000 (7 10:02 +0200)
tree67633fab86560a8f7d4601efdaf3059a9e252423
parent4aed20e2d70f4353164399a173f20c3ab435b4eb
uhci: use bottom half

Schedule bottom half on completion of async packets instead of calling
uhci_process_frame directly.  This way we run uhci_process_frame only
once in case multiple packets finish in a row.  Also check whenever
there is bandwidth left before scheduling uhci_process_frame.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/hcd-uhci.c