Coverity model should know that KM_NOSLEEP means no sleeping #16263
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation and Context
This fixes an old oversight. I doubt it affected the accuracy of coverity very much, but it is an improvement that I caught while discussing the latest coverity results with Rob N.
Description
The model is updated to only consider sleeping when KM_NOSLEEP is not used. Previously, it always assumed sleeping was possible. Coverity has some checks that can detect issues when sleeping is done, although it is very rare, so it is unlikely this affected us.
How Has This Been Tested?
The new model file will be uploaded to coverity shortly. We will know if it causes anything to go haywire soon afterward, but that is highly unlikely.
Types of changes
Checklist:
Signed-off-by
.