diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2017-07-21 02:07:54 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2017-07-24 23:53:44 +0200 |
commit | 8e6bcd9f7eac47104ce6c5d82c554c9b244b38e1 (patch) | |
tree | 74a789ae4c8825bb513a1a8e75c6613dbace2208 /kernel/power/power.h | |
parent | cb08e0353c249a27aed10c6f60a13871ae449d33 (diff) | |
download | blackbird-op-linux-8e6bcd9f7eac47104ce6c5d82c554c9b244b38e1.tar.gz blackbird-op-linux-8e6bcd9f7eac47104ce6c5d82c554c9b244b38e1.zip |
PM / s2idle: Rearrange the main suspend-to-idle loop
As a preparation for subsequent changes, rearrange the core
suspend-to-idle code by moving the initial invocation of
dpm_suspend_noirq() into s2idle_loop().
This also causes debug messages from that code to appear in
a less confusing order.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'kernel/power/power.h')
-rw-r--r-- | kernel/power/power.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/power/power.h b/kernel/power/power.h index 7fdc40d31b7d..6e3ac6a73d65 100644 --- a/kernel/power/power.h +++ b/kernel/power/power.h @@ -245,7 +245,11 @@ enum { #define TEST_FIRST TEST_NONE #define TEST_MAX (__TEST_AFTER_LAST - 1) +#ifdef CONFIG_PM_DEBUG extern int pm_test_level; +#else +#define pm_test_level (TEST_NONE) +#endif #ifdef CONFIG_SUSPEND_FREEZER static inline int suspend_freeze_processes(void) |