]> git.karo-electronics.de Git - karo-tx-linux.git/commit
PM / Domains: Add power off/on function for system core suspend stage
authorRafael J. Wysocki <rjw@sisk.pl>
Sun, 5 Aug 2012 23:39:57 +0000 (01:39 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Fri, 17 Aug 2012 17:38:43 +0000 (19:38 +0200)
commit192ae5588505d7e9d9ddf97d2e4ce9aac76bcd45
tree30fff3702bd93a641c5564131250a053d0ae7142
parent8f3ba5426ba32b3b4e677044b457bfcee9acd598
PM / Domains: Add power off/on function for system core suspend stage

Introduce function pm_genpd_syscore_switch() and two wrappers around
it, pm_genpd_syscore_poweroff() and pm_genpd_syscore_poweron(),
allowing the callers to let the generic PM domains framework know
that the given device is not necessary any more and its PM domain
can be turned off (the former) or that the given device will be
required immediately, so its PM domain has to be turned on (the
latter) during the system core (syscore) stage of system suspend
(or hibernation) and resume.

These functions will be used for handling devices registered as
clock sources and clock event devices that belong to PM domains.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
drivers/base/power/domain.c
include/linux/pm_domain.h
kernel/power/Kconfig