* [failures] gpu-drm-radeon-use-time_is_before_jiffies-instead-of-open-coding-it.patch removed from -mm tree
@ 2022-04-25 23:59 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2022-04-25 23:59 UTC (permalink / raw)
To: mm-commits, Xinhui.Pan, linux, jdelvare, daniel,
christian.koenig, alexander.deucher, airlied, wangqing, akpm
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2236 bytes --]
The patch titled
Subject: gpu: drm: radeon: use time_is_before_jiffies() instead of open coding it
has been removed from the -mm tree. Its filename was
gpu-drm-radeon-use-time_is_before_jiffies-instead-of-open-coding-it.patch
This patch was dropped because it had testing failures
------------------------------------------------------
From: Wang Qing <wangqing@vivo.com>
Subject: gpu: drm: radeon: use time_is_before_jiffies() instead of open coding it
Use the helper function time_is_{before,after}_jiffies() to improve code
readability.
Link: https://lkml.kernel.org/r/1650621172-66967-4-git-send-email-wangqing@vivo.com
Signed-off-by: Wang Qing <wangqing@vivo.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: "Christian König" <christian.koenig@amd.com>
Cc: "Pan, Xinhui" <Xinhui.Pan@amd.com>
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: Jean Delvare <jdelvare@suse.com>
Cc: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
drivers/gpu/drm/radeon/radeon_pm.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--- a/drivers/gpu/drm/radeon/radeon_pm.c~gpu-drm-radeon-use-time_is_before_jiffies-instead-of-open-coding-it
+++ a/drivers/gpu/drm/radeon/radeon_pm.c
@@ -25,6 +25,7 @@
#include <linux/hwmon.h>
#include <linux/pci.h>
#include <linux/power_supply.h>
+#include <linux/jiffies.h>
#include <drm/drm_vblank.h>
@@ -1899,7 +1900,7 @@ static void radeon_dynpm_idle_work_handl
* 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_is_before_jiffies(rdev->pm.dynpm_action_timeout)) {
radeon_pm_get_dynpm_state(rdev);
radeon_pm_set_clocks(rdev);
}
_
Patches currently in -mm which might be from wangqing@vivo.com are
hid-use-time_is_after_jiffies-instead-of-open-coding-it.patch
md-use-time_is_before_eq_jiffies-instead-of-open-coding-it.patch
net-wireless-marvell-use-time_is_before_jiffies-instead-of-open-coding-it.patch
scsi-bfa-use-time_is_before_jiffies-instead-of-open-coding-it.patch
net-decnet-use-time_is_before_jiffies-instead-of-open-coding-it.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-04-25 23:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-25 23:59 [failures] gpu-drm-radeon-use-time_is_before_jiffies-instead-of-open-coding-it.patch removed from -mm tree Andrew Morton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).