habanalabs: use correct define for 32-bit max value
Timeout in wait for interrupt is in 32-bit variable so we need to use the correct maximum value to compare. Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
This commit is contained in:
Родитель
ab5f5c3089
Коммит
366addb0c3
|
@ -1924,7 +1924,7 @@ static int _hl_interrupt_wait_ioctl(struct hl_device *hdev, struct hl_ctx *ctx,
|
||||||
u32 completion_value;
|
u32 completion_value;
|
||||||
int rc = 0;
|
int rc = 0;
|
||||||
|
|
||||||
if (timeout_us == MAX_SCHEDULE_TIMEOUT)
|
if (timeout_us == U32_MAX)
|
||||||
timeout = timeout_us;
|
timeout = timeout_us;
|
||||||
else
|
else
|
||||||
timeout = usecs_to_jiffies(timeout_us);
|
timeout = usecs_to_jiffies(timeout_us);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче