aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/mutex.c
diff options
context:
space:
mode:
authorMathias Nyman <[email protected]>2025-05-05 12:56:30 +0000
committerGreg Kroah-Hartman <[email protected]>2025-05-05 14:30:45 +0000
commitcab63934c33b12c0d1e9f4da7450928057f2c142 (patch)
tree10da2a15dc4258b4a9699df9715d3050f55c16b9 /rust/helpers/mutex.c
parentusb: xhci: Don't trust the EP Context cycle bit when moving HW dequeue (diff)
downloadkernel-cab63934c33b12c0d1e9f4da7450928057f2c142.tar.gz
kernel-cab63934c33b12c0d1e9f4da7450928057f2c142.zip
xhci: dbc: Avoid event polling busyloop if pending rx transfers are inactive.
Event polling delay is set to 0 if there are any pending requests in either rx or tx requests lists. Checking for pending requests does not work well for "IN" transfers as the tty driver always queues requests to the list and TRBs to the ring, preparing to receive data from the host. This causes unnecessary busylooping and cpu hogging. Only set the event polling delay to 0 if there are pending tx "write" transfers, or if it was less than 10ms since last active data transfer in any direction. Cc: Ɓukasz Bartosik <[email protected]> Fixes: fb18e5bb9660 ("xhci: dbc: poll at different rate depending on data transfer activity") Cc: [email protected] Signed-off-by: Mathias Nyman <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'rust/helpers/mutex.c')
0 files changed, 0 insertions, 0 deletions