Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Oct 2015 10:49:16 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r289563 - head/sys/ofed/include/linux
Message-ID:  <201510191049.t9JAnGh3049170@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Mon Oct 19 10:49:15 2015
New Revision: 289563
URL: https://svnweb.freebsd.org/changeset/base/289563

Log:
  Merge LinuxKPI changes from DragonflyBSD:
  - Some minor whitespace fixes.
  - Added support for two new Linux functions.
  
  Sponsored by:	Mellanox Technologies

Modified:
  head/sys/ofed/include/linux/workqueue.h

Modified: head/sys/ofed/include/linux/workqueue.h
==============================================================================
--- head/sys/ofed/include/linux/workqueue.h	Mon Oct 19 08:25:37 2015	(r289562)
+++ head/sys/ofed/include/linux/workqueue.h	Mon Oct 19 10:49:15 2015	(r289563)
@@ -91,11 +91,11 @@ do {									\
 
 #define	flush_scheduled_work()	flush_taskqueue(taskqueue_thread)
 
-static inline int queue_work (struct workqueue_struct *q, struct work_struct *work)
+static inline int queue_work(struct workqueue_struct *q, struct work_struct *work)
 {
 	(work)->taskqueue = (q)->taskqueue;
 	/* Return opposite val to align with Linux logic */
-        return !taskqueue_enqueue((q)->taskqueue, &(work)->work_task);
+	return !taskqueue_enqueue((q)->taskqueue, &(work)->work_task);
 }
 
 static inline void
@@ -151,6 +151,12 @@ _create_workqueue_common(char *name, int
 #define	create_workqueue(name)						\
 	_create_workqueue_common(name, MAXCPU)
 
+#define	alloc_ordered_workqueue(name, flags)				\
+	_create_workqueue_common(name, 1)
+
+#define	alloc_workqueue(name, flags, max_active)			\
+	_create_workqueue_common(name, max_active)
+
 static inline void
 destroy_workqueue(struct workqueue_struct *wq)
 {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201510191049.t9JAnGh3049170>