mirror of
				https://github.com/ARM-software/devlib.git
				synced 2025-11-04 07:51:21 +00:00 
			
		
		
		
	module/cpufreq: include policy0 in probe path
Check /sys/devices/system/cpu/cpufreq/policy0 rather than its parent during the probe. This is to handle the edge case where cpufreq has been enabled in the kernel, but no frequency domains have been defined (in which case, the module should not install).
This commit is contained in:
		
				
					committed by
					
						
						Marc Bonnici
					
				
			
			
				
	
			
			
			
						parent
						
							a35f715b63
						
					
				
				
					commit
					0d63386343
				
			@@ -37,7 +37,7 @@ class CpufreqModule(Module):
 | 
				
			|||||||
                return True
 | 
					                return True
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        # Generic CPUFreq support (single policy)
 | 
					        # Generic CPUFreq support (single policy)
 | 
				
			||||||
        path = '/sys/devices/system/cpu/cpufreq'
 | 
					        path = '/sys/devices/system/cpu/cpufreq/policy0'
 | 
				
			||||||
        if target.file_exists(path):
 | 
					        if target.file_exists(path):
 | 
				
			||||||
            return True
 | 
					            return True
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user