OSDN Git Service

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)
commitdcfe584b00f1d6dcbeeb769b939f53a3c4f04143
tree84ff164cfe5374a7fe5667b098cba441027034c5
parent1ff186ff32997049a6d263031819517eab4e93aa
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