Commit f9fd75e6 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 196a8377
...@@ -429,15 +429,18 @@ header() { ...@@ -429,15 +429,18 @@ header() {
} }
while read cpu; do while read cpu; do
cpuname=`basename $cpu`
f="$cpu/cpufreq" f="$cpu/cpufreq"
fs="freq: `cat $f/scaling_driver`/`cat $f/scaling_governor` [`fkghz $f/scaling_min_freq` - `fkghz $f/scaling_max_freq`]" fs="freq: `cat $f/scaling_driver`/`cat $f/scaling_governor` [`fkghz $f/scaling_min_freq` - `fkghz $f/scaling_max_freq`]"
if [ "$fs" != "$freqstr" ]; then if [ "$fs" != "$freqstr" ]; then
freqdump freqdump
freqstr="$fs" freqstr="$fs"
fi fi
freqcpuv+=($cpuname) freqcpuv+=(`basename $cpu`)
done \
< <(ls -vd $syscpu/cpu[0-9]*)
freqdump
while read cpu; do
is="idle: `cat $sysidle/current_driver`/`cat $sysidle/current_governor_ro`:" is="idle: `cat $sysidle/current_driver`/`cat $sysidle/current_governor_ro`:"
while read state; do while read state; do
# XXX add target residency? # XXX add target residency?
...@@ -451,11 +454,9 @@ header() { ...@@ -451,11 +454,9 @@ header() {
idledump idledump
idlestr="$is" idlestr="$is"
fi fi
idlecpuv+=($cpuname) idlecpuv+=(`basename $cpu`)
done \ done \
< <(ls -vd $syscpu/cpu[0-9]*) < <(ls -vd $syscpu/cpu[0-9]*)
freqdump
idledump idledump
#echo #echo
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment