fewer workqueues

This commit is contained in:
Kent Overstreet 2017-02-07 15:41:52 -09:00
parent d230eaea61
commit e4d1c93d85
2 changed files with 1 additions and 12 deletions

View File

@ -106,8 +106,6 @@ extern struct workqueue_struct *system_highpri_wq;
extern struct workqueue_struct *system_long_wq; extern struct workqueue_struct *system_long_wq;
extern struct workqueue_struct *system_unbound_wq; extern struct workqueue_struct *system_unbound_wq;
extern struct workqueue_struct *system_freezable_wq; extern struct workqueue_struct *system_freezable_wq;
extern struct workqueue_struct *system_power_efficient_wq;
extern struct workqueue_struct *system_freezable_power_efficient_wq;
extern struct workqueue_struct * extern struct workqueue_struct *
alloc_workqueue(const char *fmt, unsigned int flags, alloc_workqueue(const char *fmt, unsigned int flags,

View File

@ -293,8 +293,6 @@ struct workqueue_struct *system_highpri_wq;
struct workqueue_struct *system_long_wq; struct workqueue_struct *system_long_wq;
struct workqueue_struct *system_unbound_wq; struct workqueue_struct *system_unbound_wq;
struct workqueue_struct *system_freezable_wq; struct workqueue_struct *system_freezable_wq;
struct workqueue_struct *system_power_efficient_wq;
struct workqueue_struct *system_freezable_power_efficient_wq;
__attribute__((constructor(102))) __attribute__((constructor(102)))
static void wq_init(void) static void wq_init(void)
@ -306,13 +304,6 @@ static void wq_init(void)
WQ_UNBOUND_MAX_ACTIVE); WQ_UNBOUND_MAX_ACTIVE);
system_freezable_wq = alloc_workqueue("events_freezable", system_freezable_wq = alloc_workqueue("events_freezable",
WQ_FREEZABLE, 0); WQ_FREEZABLE, 0);
system_power_efficient_wq = alloc_workqueue("events_power_efficient",
WQ_POWER_EFFICIENT, 0);
system_freezable_power_efficient_wq = alloc_workqueue("events_freezable_power_efficient",
WQ_FREEZABLE | WQ_POWER_EFFICIENT,
0);
BUG_ON(!system_wq || !system_highpri_wq || !system_long_wq || BUG_ON(!system_wq || !system_highpri_wq || !system_long_wq ||
!system_unbound_wq || !system_freezable_wq || !system_unbound_wq || !system_freezable_wq);
!system_power_efficient_wq ||
!system_freezable_power_efficient_wq);
} }