diff options
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 * |