aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/workqueue.h
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2010-06-29 04:07:09 -0400
committerTejun Heo <tj@kernel.org>2010-06-29 04:07:09 -0400
commitc790bce0481857412c964c5e9d46d56e41c4b051 (patch)
tree82e87167b78bbf3456a53d057b1b741c250a0b76 /include/linux/workqueue.h
parent8fec62b2d9d0c80b594d0d85678bfdf57a70df1b (diff)
workqueue: kill RT workqueue
With stop_machine() converted to use cpu_stop, RT workqueue doesn't have any user left. Kill RT workqueue support. Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'include/linux/workqueue.h')
-rw-r--r--include/linux/workqueue.h20
1 files changed, 9 insertions, 11 deletions
diff --git a/include/linux/workqueue.h b/include/linux/workqueue.h
index 9466e860d8c2..0697946c66a1 100644
--- a/include/linux/workqueue.h
+++ b/include/linux/workqueue.h
@@ -181,12 +181,11 @@ static inline void destroy_work_on_stack(struct work_struct *work) { }
181 181
182 182
183extern struct workqueue_struct * 183extern struct workqueue_struct *
184__create_workqueue_key(const char *name, int singlethread, 184__create_workqueue_key(const char *name, int singlethread, int freezeable,
185 int freezeable, int rt, struct lock_class_key *key, 185 struct lock_class_key *key, const char *lock_name);
186 const char *lock_name);
187 186
188#ifdef CONFIG_LOCKDEP 187#ifdef CONFIG_LOCKDEP
189#define __create_workqueue(name, singlethread, freezeable, rt) \ 188#define __create_workqueue(name, singlethread, freezeable) \
190({ \ 189({ \
191 static struct lock_class_key __key; \ 190 static struct lock_class_key __key; \
192 const char *__lock_name; \ 191 const char *__lock_name; \
@@ -197,19 +196,18 @@ __create_workqueue_key(const char *name, int singlethread,
197 __lock_name = #name; \ 196 __lock_name = #name; \
198 \ 197 \
199 __create_workqueue_key((name), (singlethread), \ 198 __create_workqueue_key((name), (singlethread), \
200 (freezeable), (rt), &__key, \ 199 (freezeable), &__key, \
201 __lock_name); \ 200 __lock_name); \
202}) 201})
203#else 202#else
204#define __create_workqueue(name, singlethread, freezeable, rt) \ 203#define __create_workqueue(name, singlethread, freezeable) \
205 __create_workqueue_key((name), (singlethread), (freezeable), (rt), \ 204 __create_workqueue_key((name), (singlethread), (freezeable), \
206 NULL, NULL) 205 NULL, NULL)
207#endif 206#endif
208 207
209#define create_workqueue(name) __create_workqueue((name), 0, 0, 0) 208#define create_workqueue(name) __create_workqueue((name), 0, 0)
210#define create_rt_workqueue(name) __create_workqueue((name), 0, 0, 1) 209#define create_freezeable_workqueue(name) __create_workqueue((name), 1, 1)
211#define create_freezeable_workqueue(name) __create_workqueue((name), 1, 1, 0) 210#define create_singlethread_workqueue(name) __create_workqueue((name), 1, 0)
212#define create_singlethread_workqueue(name) __create_workqueue((name), 1, 0, 0)
213 211
214extern void destroy_workqueue(struct workqueue_struct *wq); 212extern void destroy_workqueue(struct workqueue_struct *wq);
215 213