Lines Matching +full:max +full:- +full:freq
2 # SPDX-License-Identifier: GPL-2.0
29 # files can be re-evaluated by setting EVALUATE_ONLY to 1 below.
33 # Kselftest framework requirement - SKIP code is 4.
36 if ! uname -m | sed -e s/i.86/x86/ -e s/x86_64/x86/ | grep -q x86; then
47 if ! command -v cpupower &> /dev/null; then
52 max_cpus=$(($(nproc)-1))
65 grep MHz /proc/cpuinfo | sort -u > /tmp/result.freqs
66 num_freqs=$(wc -l /tmp/result.freqs | awk ' { print $1 } ')
67 if [ $num_freqs -ge 2 ]; then
68 tail -n 1 /tmp/result.freqs > /tmp/result.$1
77 for job in `jobs -p`
89 _mkt_freq=$(cat /proc/cpuinfo | grep -m 1 "model name" | awk '{print $NF}')
90 _mkt_freq=$(echo $_mkt_freq | tr -d [:alpha:][:punct:])
94 _min_freq=$(cpupower frequency-info -l | tail -1 | awk ' { print $1 } ')
96 _max_freq=$(cpupower frequency-info -l | tail -1 | awk ' { print $2 } ')
100 [ $EVALUATE_ONLY -eq 0 ] && for freq in `seq $max_freq -100 $min_freq`
102 echo "Setting maximum frequency to $freq"
103 cpupower frequency-set -g powersave --max=${freq}MHz >& /dev/null
104 run_test $freq
107 [ $EVALUATE_ONLY -eq 0 ] && cpupower frequency-set -g powersave --max=${max_freq}MHz >& /dev/null
116 for freq in `seq $max_freq -100 $min_freq`
118 …result_freq=$(cat /tmp/result.${freq} | grep "cpu MHz" | awk ' { print $4 } ' | awk -F "." ' { pri…
119 msr=$(cat /tmp/result.${freq} | grep "msr" | awk ' { print $3 } ')
120 max_perf_pct=$(cat /tmp/result.${freq} | grep "max_perf_pct" | awk ' { print $2 } ' )
122 $freq
124 $((result_freq - freq))
131 pr -aTt -5 < /tmp/result.tab