Commit 622c8f23 authored by Zhang Rui's avatar Zhang Rui

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: default avatarZhang Rui <rui.zhang@intel.com>
Reviewed-by: default avatarLen Brown <len.brown@intel.com>
parent 11cd9a09
...@@ -4378,7 +4378,7 @@ static void dump_sysfs_file(char *path) ...@@ -4378,7 +4378,7 @@ static void dump_sysfs_file(char *path)
fprintf(outf, "%s: %s", strrchr(path, '/') + 1, cpuidle_buf); 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; int i, j;
char path[128]; char path[128];
...@@ -5556,13 +5556,13 @@ void process_cpuid() ...@@ -5556,13 +5556,13 @@ void process_cpuid()
probe_cstates(); probe_cstates();
probe_intel_uncore_frequency();
if (platform->has_nhm_msrs) if (platform->has_nhm_msrs)
BIC_PRESENT(BIC_SMI); BIC_PRESENT(BIC_SMI);
rapl_probe(); rapl_probe();
intel_uncore_frequency_probe();
if (!access("/sys/class/drm/card0/power/rc6_residency_ms", R_OK)) if (!access("/sys/class/drm/card0/power/rc6_residency_ms", R_OK))
BIC_PRESENT(BIC_GFX_rc6); BIC_PRESENT(BIC_GFX_rc6);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment