summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2017-02-07 15:41:52 -0900
committerKent Overstreet <kent.overstreet@gmail.com>2017-02-07 15:41:52 -0900
commite4d1c93d85a5b86c04599bfc9f658308d741fd41 (patch)
treef0265dd1bf7afa48271c58f37dcbb2060ff3813b
parentd230eaea612b5649a9b84ca1f5bb41455251741e (diff)
fewer workqueuesbcachefs-v0
-rw-r--r--include/linux/workqueue.h2
-rw-r--r--linux/workqueue.c11
2 files changed, 1 insertions, 12 deletions
diff --git a/include/linux/workqueue.h b/include/linux/workqueue.h
index 4bad3d3..213562f 100644
--- a/include/linux/workqueue.h
+++ b/include/linux/workqueue.h
@@ -106,8 +106,6 @@ extern struct workqueue_struct *system_highpri_wq;
extern struct workqueue_struct *system_long_wq;
extern struct workqueue_struct *system_unbound_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 *
alloc_workqueue(const char *fmt, unsigned int flags,
diff --git a/linux/workqueue.c b/linux/workqueue.c
index b25e7a4..f594277 100644
--- a/linux/workqueue.c
+++ b/linux/workqueue.c
@@ -293,8 +293,6 @@ struct workqueue_struct *system_highpri_wq;
struct workqueue_struct *system_long_wq;
struct workqueue_struct *system_unbound_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)))
static void wq_init(void)
@@ -306,13 +304,6 @@ static void wq_init(void)
WQ_UNBOUND_MAX_ACTIVE);
system_freezable_wq = alloc_workqueue("events_freezable",
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 ||
- !system_unbound_wq || !system_freezable_wq ||
- !system_power_efficient_wq ||
- !system_freezable_power_efficient_wq);
+ !system_unbound_wq || !system_freezable_wq);
}