Linux Kernel
3.7.1
|
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/io.h>
#include <linux/pm_runtime.h>
#include <linux/pm_domain.h>
#include <linux/pm_qos.h>
#include <linux/slab.h>
#include <linux/err.h>
#include <linux/sched.h>
#include <linux/suspend.h>
#include <linux/export.h>
Go to the source code of this file.
Macros | |
#define | GENPD_DEV_CALLBACK(genpd, type, callback, dev) |
#define | GENPD_DEV_TIMED_CALLBACK(genpd, type, callback, dev, field, name) |
#define | pm_genpd_runtime_suspend NULL |
#define | pm_genpd_runtime_resume NULL |
#define | pm_genpd_prepare NULL |
#define | pm_genpd_suspend NULL |
#define | pm_genpd_suspend_late NULL |
#define | pm_genpd_suspend_noirq NULL |
#define | pm_genpd_resume_early NULL |
#define | pm_genpd_resume_noirq NULL |
#define | pm_genpd_resume NULL |
#define | pm_genpd_freeze NULL |
#define | pm_genpd_freeze_late NULL |
#define | pm_genpd_freeze_noirq NULL |
#define | pm_genpd_thaw_early NULL |
#define | pm_genpd_thaw_noirq NULL |
#define | pm_genpd_thaw NULL |
#define | pm_genpd_restore_noirq NULL |
#define | pm_genpd_complete NULL |
: Name of the domain to disconnect cpuidle from. | |
pm_genpd_name_detach_cpuidle - Find PM domain and disconnect cpuidle from it. | |
#define | pm_genpd_default_suspend NULL |
#define | pm_genpd_default_suspend_late NULL |
#define | pm_genpd_default_resume_early NULL |
#define | pm_genpd_default_resume NULL |
#define | pm_genpd_default_freeze NULL |
#define | pm_genpd_default_freeze_late NULL |
#define | pm_genpd_default_thaw_early NULL |
#define | pm_genpd_default_thaw NULL |
int | pm_genpd_name_detach_cpuidle (const char *name) |
void | pm_genpd_init (struct generic_pm_domain *genpd, struct dev_power_governor *gov, bool is_off) |
int __pm_genpd_add_device | ( | struct generic_pm_domain * | genpd, |
struct device * | dev, | ||
struct gpd_timing_data * | td | ||
) |
int __pm_genpd_of_add_device | ( | struct device_node * | genpd_node, |
struct device * | dev, | ||
struct gpd_timing_data * | td | ||
) |
__pm_genpd_remove_callbacks - Remove PM domain callbacks from a given device. : Device to remove the callbacks from. : If set, clear the device's timing data too.
This routine can only be called after pm_genpd_add_callbacks().
EXPORT_SYMBOL_GPL | ( | pm_genpd_dev_need_restore | ) |
EXPORT_SYMBOL_GPL | ( | pm_genpd_add_callbacks | ) |
EXPORT_SYMBOL_GPL | ( | __pm_genpd_remove_callbacks | ) |
int pm_genpd_add_callbacks | ( | struct device * | dev, |
struct gpd_dev_ops * | ops, | ||
struct gpd_timing_data * | td | ||
) |
pm_genpd_add_callbacks - Add PM domain callbacks to a given device. : Device to add the callbacks to. : Set of callbacks to add. : Timing data to add to the device along with the callbacks (optional).
Every call to this routine should be balanced with a call to __pm_genpd_remove_callbacks() and they must not be nested.
int pm_genpd_add_subdomain | ( | struct generic_pm_domain * | genpd, |
struct generic_pm_domain * | subdomain | ||
) |
int pm_genpd_attach_cpuidle | ( | struct generic_pm_domain * | genpd, |
int | state | ||
) |
pm_genpd_attach_cpuidle - Connect the given PM domain with cpuidle. : PM domain to be connected with cpuidle. : cpuidle state this domain can disable/enable.
Make a PM domain behave as though it contained a CPU core, that is, instead of calling its power down routine it will enable the given cpuidle state so that the cpuidle subsystem can power it down (if possible and desirable).
int pm_genpd_detach_cpuidle | ( | struct generic_pm_domain * | genpd | ) |
void pm_genpd_init | ( | struct generic_pm_domain * | genpd, |
struct dev_power_governor * | gov, | ||
bool | is_off | ||
) |
int pm_genpd_remove_device | ( | struct generic_pm_domain * | genpd, |
struct device * | dev | ||
) |
int pm_genpd_remove_subdomain | ( | struct generic_pm_domain * | genpd, |
struct generic_pm_domain * | subdomain | ||
) |