mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-15 02:57:49 +00:00
habanalabs: wait for interrupt wrong timeout calculation
Wait for interrupt timeout calculation is wrong, hence timeout occurs when user waits on an interrupt with certain timeout values. Signed-off-by: Ofir Bitton <obitton@habana.ai> Reviewed-by: Oded Gabbay <ogabbay@kernel.org> Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
This commit is contained in:
parent
27a9e35daa
commit
24a107097f
1 changed files with 1 additions and 1 deletions
|
@ -2017,7 +2017,7 @@ wait_again:
|
||||||
if (completion_value >= target_value) {
|
if (completion_value >= target_value) {
|
||||||
*status = CS_WAIT_STATUS_COMPLETED;
|
*status = CS_WAIT_STATUS_COMPLETED;
|
||||||
} else {
|
} else {
|
||||||
timeout -= jiffies_to_usecs(completion_rc);
|
timeout = completion_rc;
|
||||||
goto wait_again;
|
goto wait_again;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue