]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdkfd: use time_is_before_jiffies(a + b) to replace "jiffies - a > b"
authorYu Zhe <yuzhe@nfschina.com>
Thu, 28 Jul 2022 03:30:26 +0000 (11:30 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 29 Jul 2022 19:17:31 +0000 (15:17 -0400)
commite7eb62285423d7ddc55e7897cccff91dababe2c9
tree84ff164cfe5374a7fe5667b098cba441027034c5
parentf090d3a791a2eb0d3189c60e6005e6a314ce77b9
drm/amdkfd: use time_is_before_jiffies(a + b) to replace "jiffies - a > b"

time_is_before_jiffies deals with timer wrapping correctly.

Signed-off-by: Yu Zhe <yuzhe@nfschina.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_interrupt.c