summaryrefslogtreecommitdiff
path: root/tools/power
diff options
context:
space:
mode:
Diffstat (limited to 'tools/power')
-rw-r--r--tools/power/x86/turbostat/turbostat.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/power/x86/turbostat/turbostat.c b/tools/power/x86/turbostat/turbostat.c
index a956a30d81de..bf2b1d1b2627 100644
--- a/tools/power/x86/turbostat/turbostat.c
+++ b/tools/power/x86/turbostat/turbostat.c
@@ -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);