diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2019-05-11 14:39:14 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2019-05-11 14:39:14 +0000 |
commit | 0863d4f506b44d5ea18a61e4e756a260f074f8d6 (patch) | |
tree | 2881d694833185bb373dcfc11332c3335e41d1f4 /sys/dev/pci/drm/include/linux/workqueue.h | |
parent | 0a076d05e3474e8dce1179fcf248c46817475d1b (diff) |
move irq_work bits into irq_work header
Diffstat (limited to 'sys/dev/pci/drm/include/linux/workqueue.h')
-rw-r--r-- | sys/dev/pci/drm/include/linux/workqueue.h | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/sys/dev/pci/drm/include/linux/workqueue.h b/sys/dev/pci/drm/include/linux/workqueue.h index 138ff8e7409..039a0ab9d2a 100644 --- a/sys/dev/pci/drm/include/linux/workqueue.h +++ b/sys/dev/pci/drm/include/linux/workqueue.h @@ -1,4 +1,4 @@ -/* $OpenBSD: workqueue.h,v 1.1 2019/04/14 10:14:53 jsg Exp $ */ +/* $OpenBSD: workqueue.h,v 1.2 2019/05/11 14:39:13 jsg Exp $ */ /* * Copyright (c) 2015 Mark Kettenis * @@ -103,26 +103,6 @@ struct delayed_work { struct taskq *tq; }; -struct irq_work { - struct task task; - struct taskq *tq; -}; - -typedef void (*irq_work_func_t)(struct irq_work *); - -static inline void -init_irq_work(struct irq_work *work, irq_work_func_t func) -{ - work->tq = (struct taskq *)system_wq; - task_set(&work->task, (void (*)(void *))func, work); -} - -static inline bool -irq_work_queue(struct irq_work *work) -{ - return task_add(work->tq, &work->task); -} - #define system_power_efficient_wq ((struct workqueue_struct *)systq) static inline struct delayed_work * |