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)
Mon, Apr 20, 12:12 AM
Unknown Object (File)
Sat, Apr 18, 4:33 PM
Unknown Object (File)
Tue, Apr 14, 10:41 PM
Unknown Object (File)
Sat, Apr 11, 5:57 PM
Unknown Object (File)
Fri, Apr 10, 3:21 PM
Unknown Object (File)
Tue, Apr 7, 3:18 AM
Unknown Object (File)
Mon, Apr 6, 12:48 PM
Unknown Object (File)
Tue, Mar 31, 10:54 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