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)
Sat, Oct 18, 4:57 AM
Unknown Object (File)
Thu, Oct 16, 6:11 AM
Unknown Object (File)
Sun, Oct 5, 3:06 PM
Unknown Object (File)
Sat, Oct 4, 9:38 PM
Unknown Object (File)
Sat, Oct 4, 8:58 PM
Unknown Object (File)
Sep 18 2025, 9:07 PM
Unknown Object (File)
Sep 18 2025, 11:46 AM
Unknown Object (File)
Sep 11 2025, 11:26 AM
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