summaryrefslogtreecommitdiffstats
path: root/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/DirectIvarAssignment.cpp
diff options
context:
space:
mode:
authorian <ian@FreeBSD.org>2014-02-15 20:45:53 +0000
committerian <ian@FreeBSD.org>2014-02-15 20:45:53 +0000
commitb2b116ed427142c946b92125510b8ea974181f1e (patch)
treedde2b21c696b9476659eac70ce0ac442f37da044 /contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/DirectIvarAssignment.cpp
parent128f1a43fea4c86d8283525ea3a753bb47fad453 (diff)
downloadFreeBSD-src-b2b116ed427142c946b92125510b8ea974181f1e.zip
FreeBSD-src-b2b116ed427142c946b92125510b8ea974181f1e.tar.gz
Add timeout logic to sdhci, separate from the timeouts done by the hardware.
If the hardware is not in a good state (like maybe clocks aren't running because of a configuration glitch) its timeout clock may also not work correctly, and the next command sent will hang that thread forever. The thread in question is usually the one and only thread (at init time) or a bio queue worker thread whose lockup will eventually lead to the whole system locking up when it runs out of buffers. No sd card command should take longer than 250ms. This new code establishes a 1-second timeout to allow plenty of safety margin over that.
Diffstat (limited to 'contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/DirectIvarAssignment.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud