PM / Domains: Introduce function to power off all unused PM domains
authorRafael J. Wysocki <rjw@sisk.pl>
Wed, 13 Jul 2011 10:31:52 +0000 (12:31 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Wed, 13 Jul 2011 10:31:52 +0000 (12:31 +0200)
commit5125bbf3880755419eff68672623cde49c4f31e8
tree50c4bfa1745e6d30ca16652a4d2ea848c568eb31
parent56375fd420f851944960bd53dbb08d674f4d9406
PM / Domains: Introduce function to power off all unused PM domains

Add a new function pm_genpd_poweroff_unused() queuing up the
execution of pm_genpd_poweroff() for every initialized generic PM
domain.  Calling it will cause every generic PM domain without
devices in use to be powered off.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Magnus Damm <damm@opensource.se>
drivers/base/power/domain.c
include/linux/pm_domain.h