Skip to content

Commit

Permalink
tlp-stat -p: show cpuinfo_min/max_freq
Browse files Browse the repository at this point in the history
  • Loading branch information
linrunner committed Feb 24, 2023
1 parent 374ceb7 commit 929d212
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions changelog
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
- tlp-stat -p:
- Show amd_pstate operation mode, dynamic boost, performance
and frequency attributes
- Show min/max operating frequency the processor can run at
(cpuinfo_min/max_freq)
Radio Devices:
- Support Thunderbolt docks to switch radio devices

Expand Down
6 changes: 6 additions & 0 deletions tlp-stat.in
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,12 @@ if [ "$show_proc" = "1" ] || [ "$show_all" = "1" ]; then
done
printf "[kHz]\n"
fi
if [ -f "$cpuf/cpuinfo_min_freq" ]; then
printf "%-54s = %8d [kHz]\n" "$cpuf/cpuinfo_min_freq" "$(read_sysf "$cpuf/cpuinfo_min_freq")"
fi
if [ -f "$cpuf/cpuinfo_max_freq" ]; then
printf "%-54s = %8d [kHz]\n" "$cpuf/cpuinfo_max_freq" "$(read_sysf "$cpuf/cpuinfo_max_freq")"
fi

if [ -f "$cpuf/amd_pstate_highest_perf" ]; then
printf "%-70s = %8d [%%]\n" "$cpuf/amd_pstate_highest_perf" "$(read_sysf "$cpuf/amd_pstate_highest_perf")"
Expand Down

0 comments on commit 929d212

Please sign in to comment.