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)
Thu, May 22, 9:25 AM
Unknown Object (File)
Apr 25 2025, 12:01 AM
Unknown Object (File)
Apr 14 2025, 7:40 AM
Unknown Object (File)
Apr 14 2025, 5:15 AM
Unknown Object (File)
Apr 13 2025, 9:52 PM
Unknown Object (File)
Apr 13 2025, 8:53 PM
Unknown Object (File)
Apr 6 2025, 10:16 PM
Unknown Object (File)
Feb 28 2025, 8:58 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