We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b52718d commit d968f2cCopy full SHA for d968f2c
drivers/gpu/drm/imagination/pvr_ccb.c
@@ -321,7 +321,7 @@ static int pvr_kccb_reserve_slot_sync(struct pvr_device *pvr_dev)
321
bool reserved = false;
322
u32 retries = 0;
323
324
- while ((jiffies - start_timestamp) < (u32)RESERVE_SLOT_TIMEOUT ||
+ while (time_before(jiffies, start_timestamp + RESERVE_SLOT_TIMEOUT) ||
325
retries < RESERVE_SLOT_MIN_RETRIES) {
326
reserved = pvr_kccb_try_reserve_slot(pvr_dev);
327
if (reserved)
0 commit comments