Merge LinuxKPI changes from DragonflyBSD:
- Some minor whitespace fixes. - Added support for two new Linux functions. Sponsored by: Mellanox Technologies
This commit is contained in:
parent
6b513e2853
commit
7c50bc1cf6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=289563
@ -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 cpus)
|
||||
#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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user