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 Add flush_scheduled_work back.
details: https://anonhg.NetBSD.org/src/rev/ff187a325c6c
branches: riastradh-drm2
changeset: 788572:ff187a325c6c
user: riastradh <riastradh%NetBSD.org@localhost>
date: Mon Dec 30 04:50:21 2013 +0000
description:
Add flush_scheduled_work back.
diffstat:
sys/external/bsd/drm2/include/linux/workqueue.h | 3 ++-
sys/external/bsd/drm2/linux/linux_work.c | 10 ++++++++--
2 files changed, 10 insertions(+), 3 deletions(-)
diffs (48 lines):
diff -r 505070d5e9b6 -r ff187a325c6c sys/external/bsd/drm2/include/linux/workqueue.h
--- a/sys/external/bsd/drm2/include/linux/workqueue.h Mon Dec 30 04:50:12 2013 +0000
+++ b/sys/external/bsd/drm2/include/linux/workqueue.h Mon Dec 30 04:50:21 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: workqueue.h,v 1.1.2.11 2013/12/30 04:50:12 riastradh Exp $ */
+/* $NetBSD: workqueue.h,v 1.1.2.12 2013/12/30 04:50:21 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -94,6 +94,7 @@
alloc_ordered_workqueue(const char *, int);
void destroy_workqueue(struct workqueue_struct *);
void flush_workqueue(struct workqueue_struct *);
+void flush_scheduled_work(void);
void INIT_WORK(struct work_struct *, void (*)(struct work_struct *));
void schedule_work(struct work_struct *);
diff -r 505070d5e9b6 -r ff187a325c6c sys/external/bsd/drm2/linux/linux_work.c
--- a/sys/external/bsd/drm2/linux/linux_work.c Mon Dec 30 04:50:12 2013 +0000
+++ b/sys/external/bsd/drm2/linux/linux_work.c Mon Dec 30 04:50:21 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_work.c,v 1.1.2.1 2013/12/30 04:50:12 riastradh Exp $ */
+/* $NetBSD: linux_work.c,v 1.1.2.2 2013/12/30 04:50:21 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.1 2013/12/30 04:50:12 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_work.c,v 1.1.2.2 2013/12/30 04:50:21 riastradh Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -172,6 +172,12 @@
* match what Linux does (or, doesn't do).
*/
+void
+flush_scheduled_work(void)
+{
+ flush_workqueue(system_wq);
+}
+
struct wq_flush_work {
struct work_struct wqfw_work;
struct wq_flush *wqfw_flush;
Home |
Main Index |
Thread Index |
Old Index