From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?q?Manuel=20Sch=C3=B6lling?= Date: Wed, 21 May 2014 17:39:37 +0000 Subject: [PATCH] radeon: Use time_before() Message-Id: <1400693977-21033-1-git-send-email-manuel.schoelling@gmx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: alexander.deucher@amd.com Cc: christian.koenig@amd.com, airlied@linux.ie, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, =?UTF-8?q?Manuel=20Sch=C3=B6lling?= To be future-proof and for better readability the time comparisons are modi= fied to use time_before() instead of plain, error-prone math. Signed-off-by: Manuel Sch=C3=B6lling --- drivers/gpu/drm/radeon/radeon_pm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/radeon/radeon_pm.c b/drivers/gpu/drm/radeon/ra= deon_pm.c index f30b842..b08db66 100644 --- a/drivers/gpu/drm/radeon/radeon_pm.c +++ b/drivers/gpu/drm/radeon/radeon_pm.c @@ -1592,7 +1592,7 @@ static void radeon_dynpm_idle_work_handler(struct wor= k_struct *work) * to false since we want to wait for vbl to avoid flicker. */ if (rdev->pm.dynpm_planned_action !=3D DYNPM_ACTION_NONE && - jiffies > rdev->pm.dynpm_action_timeout) { + time_before(rdev->pm.dynpm_action_timeout, jiffies)) { radeon_pm_get_dynpm_state(rdev); radeon_pm_set_clocks(rdev); } --=20 1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe kernel-janitors" = in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html