tools/power/turbostat: Rename rapl probing function
authorZhang Rui <rui.zhang@intel.com>
Thu, 31 Aug 2023 08:00:33 +0000 (16:00 +0800)
committerZhang Rui <rui.zhang@intel.com>
Wed, 27 Sep 2023 14:14:20 +0000 (22:14 +0800)
Rename rapl_probe() to probe_rapl() to be consistent with other probing
function names.

Probe rapl after probing uncore frequency.

Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Reviewed-by: Len Brown <len.brown@intel.com>
tools/power/x86/turbostat/turbostat.c

index a956a30d81dee94ddcbf5779dd4996433a2046ae..bf2b1d1b26271cb8e849f0aad83efb19d570a9c7 100644 (file)
@@ -4865,11 +4865,11 @@ void rapl_probe_amd(void)
 }
 
 /*
- * rapl_probe()
+ * probe_rapl()
  *
  * sets rapl_power_units, rapl_energy_units, rapl_time_units
  */
-void rapl_probe(void)
+void probe_rapl(void)
 {
        if (!platform->rapl_msrs)
                return;
@@ -5558,11 +5558,11 @@ void process_cpuid()
 
        probe_intel_uncore_frequency();
 
+       probe_rapl();
+
        if (platform->has_nhm_msrs)
                BIC_PRESENT(BIC_SMI);
 
-       rapl_probe();
-
        if (!access("/sys/class/drm/card0/power/rc6_residency_ms", R_OK))
                BIC_PRESENT(BIC_GFX_rc6);