PM / domains: Add late_initcall to disable unused PM domains
As default behavior let genpd at late init try to disable the unused PM domains. Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Reviewed-by: Kevin Hilman <khilman@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
		
					parent
					
						
							
								d971f0b0ea
							
						
					
				
			
			
				commit
				
					
						2fe71dcdfd
					
				
			
		
					 1 changed files with 7 additions and 0 deletions
				
			
		| 
						 | 
					@ -721,6 +721,13 @@ void pm_genpd_poweroff_unused(void)
 | 
				
			||||||
	mutex_unlock(&gpd_list_lock);
 | 
						mutex_unlock(&gpd_list_lock);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					static int __init genpd_poweroff_unused(void)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						pm_genpd_poweroff_unused();
 | 
				
			||||||
 | 
						return 0;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					late_initcall(genpd_poweroff_unused);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#else
 | 
					#else
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static inline int genpd_dev_pm_qos_notifier(struct notifier_block *nb,
 | 
					static inline int genpd_dev_pm_qos_notifier(struct notifier_block *nb,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue