diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-07-22 19:00:36 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-07-22 19:00:36 -0400 |
commit | 28cb5ef16e578bbca0a562b09f12c8c98ca92720 (patch) | |
tree | 823c538d2404323cd493dedcde08d41e166f8894 /kernel/power | |
parent | 9a3c4145af32125c5ee39c0272662b47307a8323 (diff) |
PM: Create PM workqueue if runtime PM is not configured too
The PM workqueue is going to be used by ACPI PM notify handlers
regardless of whether or not runtime PM is configured, so move
it out of #ifdef CONFIG_PM_RUNTIME.
Do that in three places in the ACPI device PM code.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'kernel/power')
-rw-r--r-- | kernel/power/main.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/kernel/power/main.c b/kernel/power/main.c index 8e90f330f139..a18efed75fa7 100644 --- a/kernel/power/main.c +++ b/kernel/power/main.c | |||
@@ -615,7 +615,6 @@ static struct attribute_group attr_group = { | |||
615 | .attrs = g, | 615 | .attrs = g, |
616 | }; | 616 | }; |
617 | 617 | ||
618 | #ifdef CONFIG_PM_RUNTIME | ||
619 | struct workqueue_struct *pm_wq; | 618 | struct workqueue_struct *pm_wq; |
620 | EXPORT_SYMBOL_GPL(pm_wq); | 619 | EXPORT_SYMBOL_GPL(pm_wq); |
621 | 620 | ||
@@ -625,9 +624,6 @@ static int __init pm_start_workqueue(void) | |||
625 | 624 | ||
626 | return pm_wq ? 0 : -ENOMEM; | 625 | return pm_wq ? 0 : -ENOMEM; |
627 | } | 626 | } |
628 | #else | ||
629 | static inline int pm_start_workqueue(void) { return 0; } | ||
630 | #endif | ||
631 | 627 | ||
632 | static int __init pm_init(void) | 628 | static int __init pm_init(void) |
633 | { | 629 | { |