projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
638bc30
)
drm/radeon: use time_after(a,b) to replace "a>b"
author
Yu Zhe
<yuzhe@nfschina.com>
Thu, 25 Aug 2022 02:38:48 +0000
(10:38 +0800)
committer
Alex Deucher
<alexander.deucher@amd.com>
Thu, 25 Aug 2022 17:35:18 +0000
(13:35 -0400)
time_after() deals with timer wrapping correctly.
Signed-off-by: Yu Zhe <yuzhe@nfschina.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_pm.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/radeon/radeon_pm.c
b/drivers/gpu/drm/radeon/radeon_pm.c
index e765abcb3b01e6e209546bfdb799ae8920ddfb3c..04c693ca419a571fe68b9f8686059db8c02955e1 100644
(file)
--- a/
drivers/gpu/drm/radeon/radeon_pm.c
+++ b/
drivers/gpu/drm/radeon/radeon_pm.c
@@
-1899,7
+1899,7
@@
static void radeon_dynpm_idle_work_handler(struct work_struct *work)
* to false since we want to wait for vbl to avoid flicker.
*/
if (rdev->pm.dynpm_planned_action != DYNPM_ACTION_NONE &&
-
jiffies > rdev->pm.dynpm_action_timeout
) {
+
time_after(jiffies, rdev->pm.dynpm_action_timeout)
) {
radeon_pm_get_dynpm_state(rdev);
radeon_pm_set_clocks(rdev);
}