PM / Domains: Rename pm_genpd_sync_poweron|poweroff()
These are internal static functions to genpd. Let's conform to the naming rules, by dropping the "pm_" prefix from these. Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
parent
adb560b3ee
commit
eefdee0707
|
@ -617,7 +617,7 @@ static bool genpd_dev_active_wakeup(struct generic_pm_domain *genpd,
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* pm_genpd_sync_poweroff - Synchronously power off a PM domain and its masters.
|
* genpd_sync_poweroff - Synchronously power off a PM domain and its masters.
|
||||||
* @genpd: PM domain to power off, if possible.
|
* @genpd: PM domain to power off, if possible.
|
||||||
*
|
*
|
||||||
* Check if the given PM domain can be powered off (during system suspend or
|
* Check if the given PM domain can be powered off (during system suspend or
|
||||||
|
@ -628,7 +628,7 @@ static bool genpd_dev_active_wakeup(struct generic_pm_domain *genpd,
|
||||||
* executed sequentially, so it is guaranteed that it will never run twice in
|
* executed sequentially, so it is guaranteed that it will never run twice in
|
||||||
* parallel).
|
* parallel).
|
||||||
*/
|
*/
|
||||||
static void pm_genpd_sync_poweroff(struct generic_pm_domain *genpd)
|
static void genpd_sync_poweroff(struct generic_pm_domain *genpd)
|
||||||
{
|
{
|
||||||
struct gpd_link *link;
|
struct gpd_link *link;
|
||||||
|
|
||||||
|
@ -647,12 +647,12 @@ static void pm_genpd_sync_poweroff(struct generic_pm_domain *genpd)
|
||||||
|
|
||||||
list_for_each_entry(link, &genpd->slave_links, slave_node) {
|
list_for_each_entry(link, &genpd->slave_links, slave_node) {
|
||||||
genpd_sd_counter_dec(link->master);
|
genpd_sd_counter_dec(link->master);
|
||||||
pm_genpd_sync_poweroff(link->master);
|
genpd_sync_poweroff(link->master);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* pm_genpd_sync_poweron - Synchronously power on a PM domain and its masters.
|
* genpd_sync_poweron - Synchronously power on a PM domain and its masters.
|
||||||
* @genpd: PM domain to power on.
|
* @genpd: PM domain to power on.
|
||||||
*
|
*
|
||||||
* This function is only called in "noirq" and "syscore" stages of system power
|
* This function is only called in "noirq" and "syscore" stages of system power
|
||||||
|
@ -660,7 +660,7 @@ static void pm_genpd_sync_poweroff(struct generic_pm_domain *genpd)
|
||||||
* executed sequentially, so it is guaranteed that it will never run twice in
|
* executed sequentially, so it is guaranteed that it will never run twice in
|
||||||
* parallel).
|
* parallel).
|
||||||
*/
|
*/
|
||||||
static void pm_genpd_sync_poweron(struct generic_pm_domain *genpd)
|
static void genpd_sync_poweron(struct generic_pm_domain *genpd)
|
||||||
{
|
{
|
||||||
struct gpd_link *link;
|
struct gpd_link *link;
|
||||||
|
|
||||||
|
@ -668,7 +668,7 @@ static void pm_genpd_sync_poweron(struct generic_pm_domain *genpd)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
list_for_each_entry(link, &genpd->slave_links, slave_node) {
|
list_for_each_entry(link, &genpd->slave_links, slave_node) {
|
||||||
pm_genpd_sync_poweron(link->master);
|
genpd_sync_poweron(link->master);
|
||||||
genpd_sd_counter_inc(link->master);
|
genpd_sd_counter_inc(link->master);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -784,7 +784,7 @@ static int pm_genpd_suspend_noirq(struct device *dev)
|
||||||
* the same PM domain, so it is not necessary to use locking here.
|
* the same PM domain, so it is not necessary to use locking here.
|
||||||
*/
|
*/
|
||||||
genpd->suspended_count++;
|
genpd->suspended_count++;
|
||||||
pm_genpd_sync_poweroff(genpd);
|
genpd_sync_poweroff(genpd);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -814,7 +814,7 @@ static int pm_genpd_resume_noirq(struct device *dev)
|
||||||
* guaranteed that this function will never run twice in parallel for
|
* guaranteed that this function will never run twice in parallel for
|
||||||
* the same PM domain, so it is not necessary to use locking here.
|
* the same PM domain, so it is not necessary to use locking here.
|
||||||
*/
|
*/
|
||||||
pm_genpd_sync_poweron(genpd);
|
genpd_sync_poweron(genpd);
|
||||||
genpd->suspended_count--;
|
genpd->suspended_count--;
|
||||||
|
|
||||||
if (genpd->dev_ops.stop && genpd->dev_ops.start)
|
if (genpd->dev_ops.stop && genpd->dev_ops.start)
|
||||||
|
@ -902,12 +902,12 @@ static int pm_genpd_restore_noirq(struct device *dev)
|
||||||
if (genpd->suspended_count++ == 0)
|
if (genpd->suspended_count++ == 0)
|
||||||
/*
|
/*
|
||||||
* The boot kernel might put the domain into arbitrary state,
|
* The boot kernel might put the domain into arbitrary state,
|
||||||
* so make it appear as powered off to pm_genpd_sync_poweron(),
|
* so make it appear as powered off to genpd_sync_poweron(),
|
||||||
* so that it tries to power it on in case it was really off.
|
* so that it tries to power it on in case it was really off.
|
||||||
*/
|
*/
|
||||||
genpd->status = GPD_STATE_POWER_OFF;
|
genpd->status = GPD_STATE_POWER_OFF;
|
||||||
|
|
||||||
pm_genpd_sync_poweron(genpd);
|
genpd_sync_poweron(genpd);
|
||||||
|
|
||||||
if (genpd->dev_ops.stop && genpd->dev_ops.start)
|
if (genpd->dev_ops.stop && genpd->dev_ops.start)
|
||||||
ret = pm_runtime_force_resume(dev);
|
ret = pm_runtime_force_resume(dev);
|
||||||
|
@ -962,9 +962,9 @@ static void genpd_syscore_switch(struct device *dev, bool suspend)
|
||||||
|
|
||||||
if (suspend) {
|
if (suspend) {
|
||||||
genpd->suspended_count++;
|
genpd->suspended_count++;
|
||||||
pm_genpd_sync_poweroff(genpd);
|
genpd_sync_poweroff(genpd);
|
||||||
} else {
|
} else {
|
||||||
pm_genpd_sync_poweron(genpd);
|
genpd_sync_poweron(genpd);
|
||||||
genpd->suspended_count--;
|
genpd->suspended_count--;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue