Page MenuHomeFreeBSD

twsi: use tsleep instead of pause for better responsiveness
ClosedPublic

Authored by avg on Sep 3 2020, 8:29 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 27, 5:02 PM
Unknown Object (File)
Thu, Nov 27, 3:22 AM
Unknown Object (File)
Nov 24 2025, 9:25 PM
Unknown Object (File)
Nov 21 2025, 7:13 PM
Unknown Object (File)
Nov 14 2025, 12:44 AM
Unknown Object (File)
Nov 13 2025, 5:46 PM
Unknown Object (File)
Nov 13 2025, 7:33 AM
Unknown Object (File)
Nov 4 2025, 5:26 PM
Subscribers

Details

Summary

wakeup() does not have any effect on pause(), so if a transfer was
not finished by the time of the first check, then the thread
would sleep full 30 ms.

To do: protect the transfer and interrupt code with the mutex,
switch from tsleep from msleep

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable