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
F172428994: D26309.id76582.diff
Fri, Sep 18, 10:05 AM
Unknown Object (File)
Sun, Sep 6, 5:39 PM
Unknown Object (File)
Sun, Sep 6, 3:30 PM
Unknown Object (File)
Sun, Sep 6, 9:20 AM
Unknown Object (File)
Sat, Sep 5, 12:17 PM
Unknown Object (File)
Fri, Sep 4, 9:27 AM
Unknown Object (File)
Fri, Sep 4, 2:04 AM
Unknown Object (File)
Fri, Sep 4, 12:25 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