1
0
mirror of https://github.com/ARM-software/devlib.git synced 2024-10-06 10:50:51 +01: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:
Brendan Jackman 2017-04-20 15:38:46 +01:00
parent 391e95cc75
commit e276abfcb4

View File

@ -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
}