Skip to content
This repository has been archived by the owner on Dec 6, 2023. It is now read-only.

Commit

Permalink
Not all HW has this option
Browse files Browse the repository at this point in the history
  • Loading branch information
igorpecovnik committed Jul 14, 2022
1 parent aea146d commit f72d657
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions modules/cpufreq/module.cli
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,13 @@ show_usage()
[[ -d /sys/devices/system/cpu/cpufreq/policy0 && -d /sys/devices/system/cpu/cpufreq/policy2 ]] && POLICY="policy2"

echo "AVAILABLE FREQUENCIES :"
cat /sys/devices/system/cpu/cpufreq/$POLICY/scaling_available_frequencies

if [[ -f /sys/devices/system/cpu/cpufreq/$POLICY/scaling_available_frequencies ]]; then
cat /sys/devices/system/cpu/cpufreq/$POLICY/scaling_available_frequencies
else
cat /sys/devices/system/cpu/cpufreq/$POLICY/cpuinfo_min_freq \
/sys/devices/system/cpu/cpufreq/$POLICY/cpuinfo_max_freq | sed -z 's/\n/ /g'
fi
echo ""
echo "AVAILABLE GOVERNORS :"
cat /sys/devices/system/cpu/cpufreq/$POLICY/scaling_available_governors
}
Expand Down

0 comments on commit f72d657

Please sign in to comment.