|
@@ -705,6 +705,14 @@ static int pm_genpd_runtime_resume(struct device *dev)
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
+static bool pd_ignore_unused;
|
|
|
+static int __init pd_ignore_unused_setup(char *__unused)
|
|
|
+{
|
|
|
+ pd_ignore_unused = true;
|
|
|
+ return 1;
|
|
|
+}
|
|
|
+__setup("pd_ignore_unused", pd_ignore_unused_setup);
|
|
|
+
|
|
|
/**
|
|
|
* pm_genpd_poweroff_unused - Power off all PM domains with no devices in use.
|
|
|
*/
|
|
@@ -712,6 +720,11 @@ void pm_genpd_poweroff_unused(void)
|
|
|
{
|
|
|
struct generic_pm_domain *genpd;
|
|
|
|
|
|
+ if (pd_ignore_unused) {
|
|
|
+ pr_warn("genpd: Not disabling unused power domains\n");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
mutex_lock(&gpd_list_lock);
|
|
|
|
|
|
list_for_each_entry(genpd, &gpd_list, gpd_list_node)
|