mirror of
				https://github.com/ARM-software/devlib.git
				synced 2025-10-31 05:53:25 +00:00 
			
		
		
		
	module/sched: Fix None check
As mentioned in the previous commit, CPU numbers would be passed to SchedProcFSData's __init__() (instead of a proper sysfs path). When done with CPU0, that path would be evaluated as False and the code would carry on with the default path, which was quite confusing. This has now been fixed (and 0 isn't such a great path to give anyway), nevertheless this check should just catter to None.
This commit is contained in:
		
				
					committed by
					
						 Marc Bonnici
						Marc Bonnici
					
				
			
			
				
	
			
			
			
						parent
						
							b8f7b24790
						
					
				
				
					commit
					ada318f27b
				
			| @@ -241,7 +241,7 @@ class SchedProcFSData(SchedProcFSNode): | |||||||
|         return False |         return False | ||||||
|  |  | ||||||
|     def __init__(self, target, path=None): |     def __init__(self, target, path=None): | ||||||
|         if not path: |         if path is None: | ||||||
|             path = self.sched_domain_root |             path = self.sched_domain_root | ||||||
|  |  | ||||||
|         procfs = target.read_tree_values(path, depth=self._read_depth) |         procfs = target.read_tree_values(path, depth=self._read_depth) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user