Skip to content

Conversation

@harp-intel
Copy link
Contributor

This pull request removes all references to the maximum frequency script from the codebase, simplifying the way maximum core frequency is determined and reported. The logic for retrieving the maximum frequency now relies solely on MSR/TPMI data, and the fallback to other sources such as /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq or dmidecode has been eliminated.

Key changes include:

Removal of maximum frequency script:

  • Deleted the MaximumFrequencyScriptName constant and its associated script definition from internal/script/script_defs.go. [1] [2]
  • Removed script.MaximumFrequencyScriptName from the list of scripts in cmd/report/report_tables.go and internal/common/table_defs.go. [1] [2]

Refactoring of maximum frequency retrieval logic:

  • Updated the MaxFrequencyFromOutput function in internal/common/frequency.go to remove logic that used /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq and dmidecode as sources for the maximum frequency, now relying only on MSR/TPMI data. [1] [2]

Signed-off-by: Harper, Jason M <jason.m.harper@intel.com>
@harp-intel harp-intel merged commit 7d153ae into main Dec 16, 2025
5 checks passed
@harp-intel harp-intel deleted the maxfreq branch December 16, 2025 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants