mirror of
https://github.com/ARM-software/devlib.git
synced 2025-02-07 13:40:48 +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:
parent
391e95cc75
commit
e276abfcb4
@ -54,7 +54,7 @@ cpufreq_trace_all_frequencies() {
|
|||||||
cpuidle_wake_all_cpus() {
|
cpuidle_wake_all_cpus() {
|
||||||
CPU_PATHS=/sys/devices/system/cpu/cpu[0-9]*
|
CPU_PATHS=/sys/devices/system/cpu/cpu[0-9]*
|
||||||
MASK=0x1; for F in $CPU_PATHS; do
|
MASK=0x1; for F in $CPU_PATHS; do
|
||||||
$BUSYBOX taskset $MASK true
|
$BUSYBOX taskset $MASK true &
|
||||||
MASK=$($BUSYBOX printf '0x%x' $((MASK * 2)))
|
MASK=$($BUSYBOX printf '0x%x' $((MASK * 2)))
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user