Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/imagination: Convert to use time_before macro

Use time_*() macros instead of using jiffies directly to handle overflow
issues.

Fixes: cc1aeedb98ad ("drm/imagination: Implement firmware infrastructure and META FW support")
Signed-off-by: Chen Yufan <chenyufan@vivo.com>
Reviewed-by: Matt Coster <matt.coster@imgtec.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240823093925.9599-1-chenyufan@vivo.com
Signed-off-by: Matt Coster <matt.coster@imgtec.com>

authored by

Chen Yufan and committed by
Matt Coster
7a5115ba 3973a8d0

+1 -1
+1 -1
drivers/gpu/drm/imagination/pvr_ccb.c
··· 321 321 bool reserved = false; 322 322 u32 retries = 0; 323 323 324 - while ((jiffies - start_timestamp) < (u32)RESERVE_SLOT_TIMEOUT || 324 + while (time_before(jiffies, start_timestamp + RESERVE_SLOT_TIMEOUT) || 325 325 retries < RESERVE_SLOT_MIN_RETRIES) { 326 326 reserved = pvr_kccb_try_reserve_slot(pvr_dev); 327 327 if (reserved)