9 #ifndef _LINUX_PM_DOMAIN_H
10 #define _LINUX_PM_DOMAIN_H
12 #include <linux/device.h>
119 #ifdef CONFIG_PM_GENERIC_DOMAINS
127 return to_gpd_data(dev->
power.subsys_data->domain_data);
151 const char *subdomain_name);
166 extern int pm_genpd_name_poweron(
const char *domain_name);
211 const char *subdomain_name)
254 static inline int pm_genpd_name_poweron(
const char *domain_name)
262 #define simple_qos_governor NULL
263 #define pm_domain_always_on_gov NULL
272 static inline int pm_genpd_of_add_device(
struct device_node *genpd_node,
278 static inline int pm_genpd_name_add_device(
const char *domain_name,
284 static inline int pm_genpd_remove_callbacks(
struct device *
dev)
289 #ifdef CONFIG_PM_GENERIC_DOMAINS_RUNTIME
291 extern void pm_genpd_poweroff_unused(
void);
294 static inline void pm_genpd_poweroff_unused(
void) {}
297 #ifdef CONFIG_PM_GENERIC_DOMAINS_SLEEP
300 static inline void pm_genpd_syscore_switch(
struct device *
dev,
bool suspend) {}
303 static inline void pm_genpd_syscore_poweroff(
struct device *
dev)
305 pm_genpd_syscore_switch(dev,
true);
308 static inline void pm_genpd_syscore_poweron(
struct device *
dev)
310 pm_genpd_syscore_switch(dev,
false);