Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/drm2/dist/drm/scheduler drm/scheduler: Rele...
details: https://anonhg.NetBSD.org/src/rev/c75a53a03a51
branches: trunk
changeset: 1028954:c75a53a03a51
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Dec 19 12:34:24 2021 +0000
description:
drm/scheduler: Release job list lock arond kthread_parkme.
diffstat:
sys/external/bsd/drm2/dist/drm/scheduler/sched_main.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (30 lines):
diff -r 122b8b2a450a -r c75a53a03a51 sys/external/bsd/drm2/dist/drm/scheduler/sched_main.c
--- a/sys/external/bsd/drm2/dist/drm/scheduler/sched_main.c Sun Dec 19 12:34:16 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/scheduler/sched_main.c Sun Dec 19 12:34:24 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sched_main.c,v 1.5 2021/12/19 12:32:45 riastradh Exp $ */
+/* $NetBSD: sched_main.c,v 1.6 2021/12/19 12:34:24 riastradh Exp $ */
/*
* Copyright 2015 Advanced Micro Devices, Inc.
@@ -47,7 +47,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sched_main.c,v 1.5 2021/12/19 12:32:45 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sched_main.c,v 1.6 2021/12/19 12:34:24 riastradh Exp $");
#include <linux/kthread.h>
#include <linux/wait.h>
@@ -728,8 +728,11 @@
*/
static bool drm_sched_blocked(struct drm_gpu_scheduler *sched)
{
+ assert_spin_locked(&sched->job_list_lock);
if (kthread_should_park()) {
+ spin_unlock(&sched->job_list_lock);
kthread_parkme();
+ spin_lock(&sched->job_list_lock);
return true;
}
Home |
Main Index |
Thread Index |
Old Index