diff options
Diffstat (limited to 'include/linux/workqueue.h')
| -rw-r--r-- | include/linux/workqueue.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/linux/workqueue.h b/include/linux/workqueue.h index 435d9755e7c8..d9ee0fc9e84f 100644 --- a/include/linux/workqueue.h +++ b/include/linux/workqueue.h @@ -49,7 +49,11 @@ struct work_struct { init_timer(&(_work)->timer); \ } while (0) -extern struct workqueue_struct *create_workqueue(const char *name); +extern struct workqueue_struct *__create_workqueue(const char *name, + int singlethread); +#define create_workqueue(name) __create_workqueue((name), 0) +#define create_singlethread_workqueue(name) __create_workqueue((name), 1) + extern void destroy_workqueue(struct workqueue_struct *wq); extern int FASTCALL(queue_work(struct workqueue_struct *wq, struct work_struct *work)); |
