summaryrefslogtreecommitdiffstats
path: root/tools/power
diff options
context:
space:
mode:
authorZhang Rui <rui.zhang@intel.com>2023-08-31 10:00:15 +0200
committerZhang Rui <rui.zhang@intel.com>2023-09-27 16:14:20 +0200
commit622c8f23556266a5afdd657aa0518b7d70d5dfc7 (patch)
treea0e6e0ff19985220cfd0d87dcf8faf9baec17b45 /tools/power
parenttools/power/turbostat: Relocate pstate probing code (diff)
downloadlinux-622c8f23556266a5afdd657aa0518b7d70d5dfc7.tar.xz
linux-622c8f23556266a5afdd657aa0518b7d70d5dfc7.zip
tools/power/turbostat: Rename uncore probing function
Rename intel_uncore_frequency_probe() to probe_intel_uncore_frequency() to be consistent with other probing function names. Probe uncore frequency right after probing cstates. Signed-off-by: Zhang Rui <rui.zhang@intel.com> Reviewed-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'tools/power')
-rw-r--r--tools/power/x86/turbostat/turbostat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/power/x86/turbostat/turbostat.c b/tools/power/x86/turbostat/turbostat.c
index 1bcaee6d0ead..a956a30d81de 100644
--- a/tools/power/x86/turbostat/turbostat.c
+++ b/tools/power/x86/turbostat/turbostat.c
@@ -4378,7 +4378,7 @@ static void dump_sysfs_file(char *path)
fprintf(outf, "%s: %s", strrchr(path, '/') + 1, cpuidle_buf);
}
-static void intel_uncore_frequency_probe(void)
+static void probe_intel_uncore_frequency(void)
{
int i, j;
char path[128];
@@ -5556,13 +5556,13 @@ void process_cpuid()
probe_cstates();
+ probe_intel_uncore_frequency();
+
if (platform->has_nhm_msrs)
BIC_PRESENT(BIC_SMI);
rapl_probe();
- intel_uncore_frequency_probe();
-
if (!access("/sys/class/drm/card0/power/rc6_residency_ms", R_OK))
BIC_PRESENT(BIC_GFX_rc6);