SWDEV-305016 - Correct timeout logic

Timeout logic should be applied always even if the wait is active.

Change-Id: I2e5db7ac8a0f9a0355ad7b40e4227d76fb002aa0


[ROCm/clr commit: 9877fc9dbf]
This commit is contained in:
German Andryeyev
2021-11-16 14:17:21 -05:00
والد e3f6db3d64
کامیت 95c01935b8
@@ -50,7 +50,8 @@ inline bool WaitForSignal(hsa_signal_t signal, bool active_wait = false) {
uint64_t timeout = kTimeout100us;
if (active_wait) {
timeout = kUnlimitedWait;
} else if (active_wait_timeout) {
}
if (active_wait_timeout) {
timeout = ROC_ACTIVE_WAIT_TIMEOUT * K;
if (timeout == 0) {
return false;