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
F167776860: D26309.id76725.diff
Mon, Aug 24, 11:26 AM
Unknown Object (File)
Fri, Aug 21, 2:35 AM
Unknown Object (File)
Mon, Aug 17, 3:42 PM
Unknown Object (File)
Mon, Aug 17, 1:29 PM
Unknown Object (File)
Sun, Aug 16, 8:59 PM
Unknown Object (File)
Sun, Aug 16, 8:19 PM
Unknown Object (File)
Sat, Aug 15, 8:52 PM
Unknown Object (File)
Sat, Aug 15, 8:45 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 Passed
Unit
No Test Coverage
Build Status
Buildable 33354
Build 30663: arc lint + arc unit