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)
May 30 2024, 6:17 AM
Unknown Object (File)
May 4 2024, 11:59 AM
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
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