PM/domains: add delayed power off capability
authorMayuresh Kulkarni <mkulkarni@nvidia.com>
Tue, 19 Feb 2013 13:26:30 +0000 (18:26 +0530)
committerDan Willemsen <dwillemsen@nvidia.com>
Sat, 14 Sep 2013 20:07:59 +0000 (13:07 -0700)
commit1e5cb7b575e2f81fa1abf6ed3c99148e7ff73bff
tree047a48c15f044e0e6157fb08c0fa49ab4986b118
parent9f56208cff996e90140bd9fe6eded4149edec19f
PM/domains: add delayed power off capability

- this commit adds a capability to delay the powering off
of the domain
- callers can use pm_genpd_set_poweroff_delay to set the
power off delay for a domain
- it also adds a pm_notifier per pm domain which cancels
the delayed power off work when system suspend is invoked
- this needs to be done since pm_wq is freezable and causes
resume to fail since no one cancels the delayed power off
work. as a result, this work is run after resume when pm_wq
is unfreezed causing unwanted issues

bug 887332

Change-Id: I1befaa6d898f535e969a564ddae12e22ffc69e2d
Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-on: http://git-master/r/202037
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
drivers/base/power/domain.c
include/linux/pm_domain.h