summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorken <ken@FreeBSD.org>2017-07-24 14:42:45 +0000
committerken <ken@FreeBSD.org>2017-07-24 14:42:45 +0000
commit84b96c88cba75f90ae4a3d3879af310a93a9f715 (patch)
treeccd8fc915ed9f3a54cc0b458c45faa1a5d01053c /lib
parenta2502e04169c955b04e0a32cea304fe32bb210f6 (diff)
downloadFreeBSD-src-84b96c88cba75f90ae4a3d3879af310a93a9f715.zip
FreeBSD-src-84b96c88cba75f90ae4a3d3879af310a93a9f715.tar.gz
MFC r321207:
------------------------------------------------------------------------ r321207 | ken | 2017-07-19 09:39:01 -0600 (Wed, 19 Jul 2017) | 14 lines Fix spurious timeouts on commands sent to mps(4) and mpr(4) controllers. mps_wait_command() and mpr_wait_command() were using getmicrotime() to determine elapsed time when checking for a timeout in polled mode. getmicrotime() isn't guaranteed to monotonically increase, and that caused spurious timeouts occasionally. Switch to using getmicrouptime(), which does increase monotonically. This fixes the spurious timeouts in my test case. ------------------------------------------------------------------------ Reviewed by: slm, scottl Sponsored by: Spectra Logic
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud