From 994b02c6d2b266027dcd33219c83a8b683053969 Mon Sep 17 00:00:00 2001 From: Nicolas Derumigny Date: Thu, 3 Nov 2022 00:38:42 -0600 Subject: [PATCH] cpufreqctl: avoid boosting when measuring pstate frequency --- tool/cpufreqctl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tool/cpufreqctl b/tool/cpufreqctl index 1ae96f2..3c3fe6a 100755 --- a/tool/cpufreqctl +++ b/tool/cpufreqctl @@ -261,6 +261,7 @@ intel_pstate_info_frequencies () exec 7> /dev/null flock 7 + sleep 0.1 prev=$(cat /sys/devices/system/cpu/intel_pstate/max_perf_pct) echo 100 > /sys/devices/system/cpu/intel_pstate/max_perf_pct max=$(cat /sys/devices/system/cpu/intel_pstate/max_perf_pct) @@ -276,6 +277,7 @@ intel_pstate_info_frequencies () intel_pstate_info_current () { + sleep 0.01 for scaling_cur_freq in /sys/devices/system/cpu/cpufreq/policy*/scaling_cur_freq do cat "${scaling_cur_freq}" &