workqueue: increase max_active of keventd and kill current_is_keventd()
[deliverable/linux.git] / include / linux / workqueue.h
index b8f4ec45c40a61c1b6b64c54b15d032aa877f5ed..33e24e734d503d130e8ed0600a15ade79ec76b9c 100644 (file)
@@ -227,6 +227,9 @@ enum {
        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 */
+
+       WQ_MAX_ACTIVE           = 512,    /* I like 512, better ideas? */
+       WQ_DFL_ACTIVE           = WQ_MAX_ACTIVE / 2,
 };
 
 extern struct workqueue_struct *
@@ -280,7 +283,6 @@ extern int schedule_delayed_work(struct delayed_work *work, unsigned long delay)
 extern int schedule_delayed_work_on(int cpu, struct delayed_work *work,
                                        unsigned long delay);
 extern int schedule_on_each_cpu(work_func_t func);
-extern int current_is_keventd(void);
 extern int keventd_up(void);
 
 extern void init_workqueues(void);
This page took 0.029494 seconds and 5 git commands to generate.