aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1123-drm-amdkfd-kfd_device_queue_manager.c-Remove-unused-.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1123-drm-amdkfd-kfd_device_queue_manager.c-Remove-unused-.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1123-drm-amdkfd-kfd_device_queue_manager.c-Remove-unused-.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1123-drm-amdkfd-kfd_device_queue_manager.c-Remove-unused-.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1123-drm-amdkfd-kfd_device_queue_manager.c-Remove-unused-.patch
new file mode 100644
index 00000000..13a9514b
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1123-drm-amdkfd-kfd_device_queue_manager.c-Remove-unused-.patch
@@ -0,0 +1,32 @@
+From 217f3c5877eca5d2b795baead457b275b31dee11 Mon Sep 17 00:00:00 2001
+From: Kent Russell <kent.russell@amd.com>
+Date: Tue, 5 Jul 2016 11:08:53 -0400
+Subject: [PATCH 1123/4131] drm/amdkfd/kfd_device_queue_manager.c: Remove
+ unused lock/out references
+
+The lock is no longer used, and the goto out has also been removed
+
+Change-Id: Iee06a5e0ad8970fdd2e51ad2bbab01ed22d9edea
+---
+ drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c | 4 ----
+ 1 file changed, 4 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c b/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c
+index e123390..8050aaf 100644
+--- a/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c
++++ b/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c
+@@ -1095,11 +1095,7 @@ static int unmap_queues_cpsch(struct device_queue_manager *dqm,
+
+ retval = 0;
+
+- if (lock)
+- mutex_lock(&dqm->lock);
+ if (!dqm->active_runlist)
+- goto out;
+- if (dqm->active_runlist == false)
+ return retval;
+
+ pr_debug("kfd: Before destroying queues, sdma queue count is : %u\n",
+--
+2.7.4
+