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, Jun 13, 7:12 AM
Unknown Object (File)
May 11 2026, 11:06 AM
Unknown Object (File)
Apr 30 2026, 10:28 AM
Unknown Object (File)
Apr 28 2026, 12:30 AM
Unknown Object (File)
Apr 20 2026, 12:12 AM
Unknown Object (File)
Apr 18 2026, 4:33 PM
Unknown Object (File)
Apr 14 2026, 10:41 PM
Unknown Object (File)
Apr 11 2026, 5:57 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