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)
Dec 23 2023, 1:30 AM
Unknown Object (File)
Dec 10 2023, 6:36 PM
Unknown Object (File)
Sep 6 2023, 9:56 AM
Unknown Object (File)
Jul 4 2023, 6:18 PM
Unknown Object (File)
Jul 4 2023, 6:16 PM
Unknown Object (File)
Jul 4 2023, 6:16 PM
Unknown Object (File)
Jul 2 2023, 6:58 AM
Unknown Object (File)
May 21 2023, 4:01 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 Passed
Unit
No Test Coverage
Build Status
Buildable 33354
Build 30663: arc lint + arc unit