tools/power/turbostat: Rename some functions
JIRA: https://issues.redhat.com/browse/RHEL-20029 commit 8b7199c0855e3b22532a21aaaed78e699431e4e5 Author: Zhang Rui <rui.zhang@intel.com> Date: Mon Mar 27 14:58:35 2023 +0800 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> Signed-off-by: David Arcari <darcari@redhat.com>
This commit is contained in:
parent
eaa75c9290
commit
cbce5b06e4
|
@ -2823,7 +2823,7 @@ static void calculate_tsc_tweak()
|
|||
|
||||
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 int ratio;
|
||||
|
@ -3059,7 +3059,7 @@ static void dump_knl_turbo_ratio_limits(void)
|
|||
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;
|
||||
|
||||
|
@ -4432,9 +4432,9 @@ static void dump_cstate_pstate_config_info(unsigned int family, unsigned int mod
|
|||
if (!platform->has_nhm_msrs)
|
||||
return;
|
||||
|
||||
dump_nhm_platform_info();
|
||||
dump_platform_info();
|
||||
dump_turbo_ratio_info(family, model);
|
||||
dump_nhm_cst_cfg();
|
||||
dump_cst_cfg();
|
||||
}
|
||||
|
||||
static int read_sysfs_int(char *path)
|
||||
|
|
Loading…
Reference in New Issue