mirror of
				https://github.com/ARM-software/devlib.git
				synced 2025-11-03 15:31:20 +00:00 
			
		
		
		
	shutils: Speed up cpuidle_wake_all_cpus
This can currently take several hundred milliseconds on slow targets with many CPUs. To speed it up, use '&' to spawn the perturbations in paralell.
This commit is contained in:
		@@ -54,7 +54,7 @@ cpufreq_trace_all_frequencies() {
 | 
			
		||||
cpuidle_wake_all_cpus() {
 | 
			
		||||
	CPU_PATHS=/sys/devices/system/cpu/cpu[0-9]*
 | 
			
		||||
	MASK=0x1; for F in $CPU_PATHS; do
 | 
			
		||||
		$BUSYBOX taskset $MASK true
 | 
			
		||||
		$BUSYBOX taskset $MASK true &
 | 
			
		||||
		MASK=$($BUSYBOX printf '0x%x' $((MASK * 2)))
 | 
			
		||||
	done
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user