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/linux linux: Make kthread_park/stop wo...
details: https://anonhg.NetBSD.org/src/rev/9ef0de21498e
branches: trunk
changeset: 1028924:9ef0de21498e
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Dec 19 12:29:39 2021 +0000
description:
linux: Make kthread_park/stop work at IPL_VM.
Needed in order to hold spin locks around it.
diffstat:
sys/external/bsd/drm2/linux/linux_kthread.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 1a2fc38605d1 -r 9ef0de21498e sys/external/bsd/drm2/linux/linux_kthread.c
--- a/sys/external/bsd/drm2/linux/linux_kthread.c Sun Dec 19 12:29:33 2021 +0000
+++ b/sys/external/bsd/drm2/linux/linux_kthread.c Sun Dec 19 12:29:39 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_kthread.c,v 1.2 2021/12/19 12:24:19 riastradh Exp $ */
+/* $NetBSD: linux_kthread.c,v 1.3 2021/12/19 12:29:39 riastradh Exp $ */
/*-
* Copyright (c) 2021 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_kthread.c,v 1.2 2021/12/19 12:24:19 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_kthread.c,v 1.3 2021/12/19 12:29:39 riastradh Exp $");
#include <sys/types.h>
@@ -115,7 +115,7 @@
T = kmem_zalloc(sizeof(*T), KM_SLEEP);
- mutex_init(&T->kt_lock, MUTEX_DEFAULT, IPL_NONE);
+ mutex_init(&T->kt_lock, MUTEX_DEFAULT, IPL_VM);
cv_init(&T->kt_cv, "lnxkthrd");
T->kt_func = func;
Home |
Main Index |
Thread Index |
Old Index