Skip to content

Commit 622c8f2

Browse files
committed
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>
1 parent 11cd9a0 commit 622c8f2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tools/power/x86/turbostat/turbostat.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4378,7 +4378,7 @@ static void dump_sysfs_file(char *path)
43784378
fprintf(outf, "%s: %s", strrchr(path, '/') + 1, cpuidle_buf);
43794379
}
43804380

4381-
static void intel_uncore_frequency_probe(void)
4381+
static void probe_intel_uncore_frequency(void)
43824382
{
43834383
int i, j;
43844384
char path[128];
@@ -5556,13 +5556,13 @@ void process_cpuid()
55565556

55575557
probe_cstates();
55585558

5559+
probe_intel_uncore_frequency();
5560+
55595561
if (platform->has_nhm_msrs)
55605562
BIC_PRESENT(BIC_SMI);
55615563

55625564
rapl_probe();
55635565

5564-
intel_uncore_frequency_probe();
5565-
55665566
if (!access("/sys/class/drm/card0/power/rc6_residency_ms", R_OK))
55675567
BIC_PRESENT(BIC_GFX_rc6);
55685568

0 commit comments

Comments
 (0)