fix: use scaling_max_freq for accurate max CPU clock detection (#866)

This commit is contained in:
Eduardo Portilho 2025-07-20 04:56:13 -03:00 committed by GitHub
parent bb1abd9342
commit 562278377f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -208,7 +208,7 @@ function get_frequency_min_limit () {
function get_frequency_max_limit () {
if [ -z $CORE ]; then CORE=0; fi
cat $FLROOT/cpu$CORE/cpufreq/cpuinfo_max_freq
cat $FLROOT/cpu$CORE/cpufreq/scaling_max_freq
}
function get_energy_performance_preference () {