Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 206227
b: refs/heads/master
c: e22bee7
h: refs/heads/master
i:
  206225: 642440a
  206223: bea4476
v: v3
  • Loading branch information
Tejun Heo committed Jun 29, 2010
1 parent b93b47c commit 3f1ba9d
Show file tree
Hide file tree
Showing 4 changed files with 842 additions and 117 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d302f0178223802a1e496ba90c66193b7721c9c1
refs/heads/master: e22bee782b3b00bd4534ae9b1c5fb2e8e6573c5c
8 changes: 5 additions & 3 deletions trunk/include/linux/workqueue.h
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ enum {
WQ_FREEZEABLE = 1 << 0, /* freeze during suspend */
WQ_SINGLE_CPU = 1 << 1, /* only single cpu at a time */
WQ_NON_REENTRANT = 1 << 2, /* guarantee non-reentrance */
WQ_RESCUER = 1 << 3, /* has an rescue worker */
};

extern struct workqueue_struct *
Expand All @@ -252,11 +253,12 @@ __create_workqueue_key(const char *name, unsigned int flags, int max_active,
#endif

#define create_workqueue(name) \
__create_workqueue((name), 0, 1)
__create_workqueue((name), WQ_RESCUER, 1)
#define create_freezeable_workqueue(name) \
__create_workqueue((name), WQ_FREEZEABLE | WQ_SINGLE_CPU, 1)
__create_workqueue((name), \
WQ_FREEZEABLE | WQ_SINGLE_CPU | WQ_RESCUER, 1)
#define create_singlethread_workqueue(name) \
__create_workqueue((name), WQ_SINGLE_CPU, 1)
__create_workqueue((name), WQ_SINGLE_CPU | WQ_RESCUER, 1)

extern void destroy_workqueue(struct workqueue_struct *wq);

Expand Down
Loading

0 comments on commit 3f1ba9d

Please sign in to comment.