diff options
Diffstat (limited to 'common/recipes-kernel/linux/files/0504-drm-amdgpu-wake-up-scheduler-only-when-neccessary.patch')
-rw-r--r-- | common/recipes-kernel/linux/files/0504-drm-amdgpu-wake-up-scheduler-only-when-neccessary.patch | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/common/recipes-kernel/linux/files/0504-drm-amdgpu-wake-up-scheduler-only-when-neccessary.patch b/common/recipes-kernel/linux/files/0504-drm-amdgpu-wake-up-scheduler-only-when-neccessary.patch deleted file mode 100644 index 639aab74..00000000 --- a/common/recipes-kernel/linux/files/0504-drm-amdgpu-wake-up-scheduler-only-when-neccessary.patch +++ /dev/null @@ -1,57 +0,0 @@ -From 88079006dc412c5d1676f9f6e9c4d72a209eb556 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Christian=20K=C3=B6nig?= <christian.koenig@amd.com> -Date: Mon, 24 Aug 2015 14:29:40 +0200 -Subject: [PATCH 0504/1050] drm/amdgpu: wake up scheduler only when neccessary -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -Signed-off-by: Christian König <christian.koenig@amd.com> -Acked-by: Alex Deucher <alexander.deucher@amd.com> -Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com> -Reviewed-by: Chunming Zhou <david1.zhou@amd.com> ---- - drivers/gpu/drm/amd/scheduler/gpu_scheduler.c | 13 ++++++++++++- - 1 file changed, 12 insertions(+), 1 deletion(-) - -diff --git a/drivers/gpu/drm/amd/scheduler/gpu_scheduler.c b/drivers/gpu/drm/amd/scheduler/gpu_scheduler.c -index ca22d90..4145365 100644 ---- a/drivers/gpu/drm/amd/scheduler/gpu_scheduler.c -+++ b/drivers/gpu/drm/amd/scheduler/gpu_scheduler.c -@@ -27,6 +27,8 @@ - #include <drm/drmP.h> - #include "gpu_scheduler.h" - -+static void amd_sched_wakeup(struct amd_gpu_scheduler *sched); -+ - /* Initialize a given run queue struct */ - static void amd_sched_rq_init(struct amd_sched_rq *rq) - { -@@ -209,7 +211,7 @@ static bool amd_sched_entity_in(struct amd_sched_job *job) - - /* first job wakes up scheduler */ - if (first) -- wake_up_interruptible(&job->sched->wait_queue); -+ amd_sched_wakeup(job->sched); - - return added; - } -@@ -250,6 +252,15 @@ static bool amd_sched_ready(struct amd_gpu_scheduler *sched) - } - - /** -+ * Wake up the scheduler when it is ready -+ */ -+static void amd_sched_wakeup(struct amd_gpu_scheduler *sched) -+{ -+ if (amd_sched_ready(sched)) -+ wake_up_interruptible(&sched->wait_queue); -+} -+ -+/** - * Select next entity containing real IB submissions - */ - static struct amd_sched_entity * --- -1.9.1 - |