aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/pm.h
diff options
context:
space:
mode:
authorRafael J. Wysocki <rjw@sisk.pl>2011-10-16 23:34:36 +0200
committerRafael J. Wysocki <rjw@sisk.pl>2011-10-22 00:19:29 +0200
commit4ca46ff3e0d8c234cb40ebb6457653b59584426c (patch)
treeb929bbc30d5e08b1ba4be980c473f9d594a42b58 /include/linux/pm.h
parentcd0ea672f58d5cfdea271c45cec0c897f2b792aa (diff)
downloadkernel_samsung_smdk4412-4ca46ff3e0d8c234cb40ebb6457653b59584426c.zip
kernel_samsung_smdk4412-4ca46ff3e0d8c234cb40ebb6457653b59584426c.tar.gz
kernel_samsung_smdk4412-4ca46ff3e0d8c234cb40ebb6457653b59584426c.tar.bz2
PM / Sleep: Mark devices involved in wakeup signaling during suspend
The generic PM domains code in drivers/base/power/domain.c has to avoid powering off domains that provide power to wakeup devices during system suspend. Currently, however, this only works for wakeup devices directly belonging to the given domain and not for their children (or the children of their children and so on). Thus, if there's a wakeup device whose parent belongs to a power domain handled by the generic PM domains code, the domain will be powered off during system suspend preventing the device from signaling wakeup. To address this problem introduce a device flag, power.wakeup_path, that will be set during system suspend for all wakeup devices, their parents, the parents of their parents and so on. This way, all wakeup paths in the device hierarchy will be marked and the generic PM domains code will only need to avoid powering off domains containing devices whose power.wakeup_path is set. Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Diffstat (limited to 'include/linux/pm.h')
-rw-r--r--include/linux/pm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/pm.h b/include/linux/pm.h
index f256824..74711a9 100644
--- a/include/linux/pm.h
+++ b/include/linux/pm.h
@@ -448,6 +448,7 @@ struct dev_pm_info {
struct list_head entry;
struct completion completion;
struct wakeup_source *wakeup;
+ bool wakeup_path:1;
#else
unsigned int should_wakeup:1;
#endif