tools/power/turbostat: Rename some functions

Rename dump_nhm_platform_info() and dump_nhm_cst_cfg() to
dump_platform_info() and dump_cst_cfg() because these MSRs' behavior is
consistent when they're available.

Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Reviewed-by: Len Brown <len.brown@intel.com>
This commit is contained in:
Zhang Rui 2023-03-27 14:58:35 +08:00
parent c2c25e85df
commit 8b7199c085

View File

@ -2823,7 +2823,7 @@ static void calculate_tsc_tweak()
void prewake_cstate_probe(unsigned int family, unsigned int model); void prewake_cstate_probe(unsigned int family, unsigned int model);
static void dump_nhm_platform_info(void) static void dump_platform_info(void)
{ {
unsigned long long msr; unsigned long long msr;
unsigned int ratio; unsigned int ratio;
@ -3059,7 +3059,7 @@ static void dump_knl_turbo_ratio_limits(void)
ratio[i], bclk, ratio[i] * bclk, cores[i]); ratio[i], bclk, ratio[i] * bclk, cores[i]);
} }
static void dump_nhm_cst_cfg(void) static void dump_cst_cfg(void)
{ {
unsigned long long msr; unsigned long long msr;
@ -4432,9 +4432,9 @@ static void dump_cstate_pstate_config_info(unsigned int family, unsigned int mod
if (!platform->has_nhm_msrs) if (!platform->has_nhm_msrs)
return; return;
dump_nhm_platform_info(); dump_platform_info();
dump_turbo_ratio_info(family, model); dump_turbo_ratio_info(family, model);
dump_nhm_cst_cfg(); dump_cst_cfg();
} }
static int read_sysfs_int(char *path) static int read_sysfs_int(char *path)