mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-10 03:20:25 -04:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user