Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/riastradh-drm2]: src/sys/external/bsd/drm2/linux Initialize the workqueu...
details: https://anonhg.NetBSD.org/src/rev/82a6df7cdf96
branches: riastradh-drm2
changeset: 788577:82a6df7cdf96
user: riastradh <riastradh%NetBSD.org@localhost>
date: Mon Dec 30 04:51:06 2013 +0000
description:
Initialize the workqueue flush structures correctly.
diffstat:
sys/external/bsd/drm2/linux/linux_work.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (34 lines):
diff -r c122739b01d9 -r 82a6df7cdf96 sys/external/bsd/drm2/linux/linux_work.c
--- a/sys/external/bsd/drm2/linux/linux_work.c Mon Dec 30 04:50:57 2013 +0000
+++ b/sys/external/bsd/drm2/linux/linux_work.c Mon Dec 30 04:51:06 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_work.c,v 1.1.2.6 2013/12/30 04:50:57 riastradh Exp $ */
+/* $NetBSD: linux_work.c,v 1.1.2.7 2013/12/30 04:51:06 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_work.c,v 1.1.2.6 2013/12/30 04:50:57 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_work.c,v 1.1.2.7 2013/12/30 04:51:06 riastradh Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -208,6 +208,7 @@
struct wq_flush_work wqfw = zero_wqfw;
wqf.wqf_n = 1;
+ wqfw.wqfw_flush = &wqf;
INIT_WORK(&wqfw.wqfw_work, &linux_wq_barrier);
wqfw.wqfw_work.w_wq = wq;
wqfw.wqfw_work.w_state = WORK_PENDING;
@@ -226,6 +227,7 @@
mutex_enter(&wqf.wqf_lock);
wqf.wqf_n++;
mutex_exit(&wqf.wqf_lock);
+ wqfw->wqfw_flush = &wqf;
INIT_WORK(&wqfw->wqfw_work, &linux_wq_barrier);
wqfw->wqfw_work.w_state = WORK_PENDING;
wqfw->wqfw_work.w_wq = wq;
Home |
Main Index |
Thread Index |
Old Index