Module Name:    src
Committed By:   riastradh
Date:           Wed Jul 24 03:37:04 UTC 2013

Modified Files:
        src/sys/external/bsd/drm2/include/linux [riastradh-drm2]: workqueue.h

Log Message:
Add stubs for flush_workqueue and flush_scheduled_work that warn.


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.5 -r1.1.2.6 \
    src/sys/external/bsd/drm2/include/linux/workqueue.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/external/bsd/drm2/include/linux/workqueue.h
diff -u src/sys/external/bsd/drm2/include/linux/workqueue.h:1.1.2.5 src/sys/external/bsd/drm2/include/linux/workqueue.h:1.1.2.6
--- src/sys/external/bsd/drm2/include/linux/workqueue.h:1.1.2.5	Wed Jul 24 03:04:04 2013
+++ src/sys/external/bsd/drm2/include/linux/workqueue.h	Wed Jul 24 03:37:04 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: workqueue.h,v 1.1.2.5 2013/07/24 03:04:04 riastradh Exp $	*/
+/*	$NetBSD: workqueue.h,v 1.1.2.6 2013/07/24 03:37:04 riastradh Exp $	*/
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -34,6 +34,7 @@
 
 #include <sys/callout.h>
 
+#include <asm/bug.h>
 #include <linux/kernel.h>
 
 /*
@@ -114,6 +115,9 @@ destroy_workqueue(struct workqueue_struc
 {
 }
 
+#define	flush_workqueue(wq)		WARN(true, "Can't flush workqueues!");
+#define	flush_scheduled_work(wq)	WARN(true, "Can't flush workqueues!");
+
 static inline void
 queue_work(struct workqueue_struct *wq __unused, struct work_struct *work)
 {

Reply via email to