aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.14.71/2112-drm-amdkfd-Fixed-a-unit-convert-error.patch
blob: 498823bb1cea8f9201a0893f19870dcd0b254839 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
From 9ad98b16ca2432e2b233f368cb1f8af096775f5c Mon Sep 17 00:00:00 2001
From: Oak Zeng <Oak.Zeng@amd.com>
Date: Wed, 27 Sep 2017 18:21:21 -0400
Subject: [PATCH 2112/4131] drm/amdkfd: Fixed a unit convert error

schedule_delayed_work take jiffies as the second param
Convert ms to jiffies before call this func

Change-Id: Ied35d1b3703162fbfb5f39e9389ad3de8f89fac8
Signed-off-by: Oak Zeng <Oak.Zeng@amd.com>
---
 drivers/gpu/drm/amd/amdkfd/kfd_device.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_device.c b/drivers/gpu/drm/amd/amdkfd/kfd_device.c
index af2424e..6f5f93c 100644
--- a/drivers/gpu/drm/amd/amdkfd/kfd_device.c
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_device.c
@@ -950,7 +950,7 @@ void kfd_restore_bo_worker(struct work_struct *work)
 		pr_info("Restore failed, try again after %d ms\n",
 			PROCESS_BACK_OFF_TIME_MS);
 		ret = schedule_delayed_work(&p->restore_work,
-				PROCESS_BACK_OFF_TIME_MS);
+				msecs_to_jiffies(PROCESS_BACK_OFF_TIME_MS));
 		WARN(!ret, "reschedule restore work failed\n");
 		return;
 	}
@@ -1050,7 +1050,7 @@ void kfd_evict_bo_worker(struct work_struct *work)
 	if (!ret) {
 		dma_fence_signal(eviction_work->quiesce_fence);
 		schedule_delayed_work(&p->restore_work,
-					PROCESS_RESTORE_TIME_MS);
+				msecs_to_jiffies(PROCESS_RESTORE_TIME_MS));
 	} else
 		pr_err("Failed to quiesce user queues. Cannot evict BOs\n");
 
-- 
2.7.4