From 929d21205141c881027fe13bb8c40556726e80c6 Mon Sep 17 00:00:00 2001 From: Thomas Koch Date: Fri, 24 Feb 2023 17:19:37 +0100 Subject: [PATCH] tlp-stat -p: show cpuinfo_min/max_freq --- changelog | 2 ++ tlp-stat.in | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/changelog b/changelog index 33522060..86381acf 100644 --- a/changelog +++ b/changelog @@ -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 diff --git a/tlp-stat.in b/tlp-stat.in index 77be369d..a9ae1157 100644 --- a/tlp-stat.in +++ b/tlp-stat.in @@ -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")"