|
@@ -1292,13 +1292,13 @@ static void pm_genpd_complete(struct device *dev)
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * pm_genpd_syscore_switch - Switch power during system core suspend or resume.
|
|
|
+ * genpd_syscore_switch - Switch power during system core suspend or resume.
|
|
|
* @dev: Device that normally is marked as "always on" to switch power for.
|
|
|
*
|
|
|
* This routine may only be called during the system core (syscore) suspend or
|
|
|
* resume phase for devices whose "always on" flags are set.
|
|
|
*/
|
|
|
-void pm_genpd_syscore_switch(struct device *dev, bool suspend)
|
|
|
+static void genpd_syscore_switch(struct device *dev, bool suspend)
|
|
|
{
|
|
|
struct generic_pm_domain *genpd;
|
|
|
|
|
@@ -1314,7 +1314,18 @@ void pm_genpd_syscore_switch(struct device *dev, bool suspend)
|
|
|
genpd->suspended_count--;
|
|
|
}
|
|
|
}
|
|
|
-EXPORT_SYMBOL_GPL(pm_genpd_syscore_switch);
|
|
|
+
|
|
|
+void pm_genpd_syscore_poweroff(struct device *dev)
|
|
|
+{
|
|
|
+ genpd_syscore_switch(dev, true);
|
|
|
+}
|
|
|
+EXPORT_SYMBOL_GPL(pm_genpd_syscore_poweroff);
|
|
|
+
|
|
|
+void pm_genpd_syscore_poweron(struct device *dev)
|
|
|
+{
|
|
|
+ genpd_syscore_switch(dev, false);
|
|
|
+}
|
|
|
+EXPORT_SYMBOL_GPL(pm_genpd_syscore_poweron);
|
|
|
|
|
|
#else
|
|
|
|