Open GoogleCodeExporter opened 8 years ago
$ for cpu in /sys/devices/system/cpu/cpu[0-9]*; do echo $cpu; cat
$cpu/cpufreq/scaling_governor; cat $cpu/cpufreq/cpuinfo_{min,max}_freq; done |
awk '{if( $1 ~ /devices/){n=1;d=substr($1, index($1, "/cpu/") + 5)} else {n++;
d = d " " $1; if (n==4){print d} }}'
cpu0 ondemand 800000 1300000
cpu1 ondemand 800000 1300000
Original comment by baron.schwartz
on 14 Feb 2011 at 1:44
Original issue reported on code.google.com by
gryp...@gmail.com
on 2 Dec 2010 at 8:49