File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -203,12 +203,12 @@ function set_frequency_max () {
203203
204204function get_frequency_min_limit () {
205205 if [ -z $CORE ]; then CORE=0; fi
206- cat $ FLROOT /cpu$CORE /cpufreq/cpuinfo_min_freq
206+ echo $( awk ' {a[NR]=$1} END{if(a[1]<a[2]) print a[1]; else print a[2]} ' $ FLROOT /cpu$CORE /cpufreq/cpuinfo_min_freq $FLROOT /cpu $CORE /cpufreq/scaling_min_freq )
207207}
208208
209209function get_frequency_max_limit () {
210210 if [ -z $CORE ]; then CORE=0; fi
211- cat $ FLROOT /cpu$CORE /cpufreq/scaling_max_freq
211+ echo $( awk ' {a[NR]=$1} END{if(a[1]>a[2]) print a[1]; else print a[2]} ' $ FLROOT /cpu$CORE /cpufreq/cpuinfo_max_freq $FLROOT /cpu $CORE /cpufreq/ scaling_max_freq)
212212}
213213
214214function get_energy_performance_preference () {
You can’t perform that action at this time.
0 commit comments