Commit a3943dea authored by Zhang Rui's avatar Zhang Rui

tools/power/turbostat: Rename some TRL functions

Rename dump_hsw_turbo_ratio_limits() and dump_ivt_turbo_ratio_limits()
to dump_turbo_ratio_limit2() and dump_turbo_ratio_limit1() because they
dump MSR_TURBO_RATIO_LIMIT1/LIMIT2, and the MSRs' behavior is
consistent when they are available.
Signed-off-by: default avatarZhang Rui <rui.zhang@intel.com>
Reviewed-by: default avatarLen Brown <len.brown@intel.com>
parent 10d85d85
......@@ -2886,7 +2886,7 @@ static void dump_platform_info(void)
return;
}
static void dump_hsw_turbo_ratio_limits(void)
static void dump_turbo_ratio_limit2(void)
{
unsigned long long msr;
unsigned int ratio;
......@@ -2905,7 +2905,7 @@ static void dump_hsw_turbo_ratio_limits(void)
return;
}
static void dump_ivt_turbo_ratio_limits(void)
static void dump_turbo_ratio_limit1(void)
{
unsigned long long msr;
unsigned int ratio;
......@@ -4326,10 +4326,10 @@ static void dump_turbo_ratio_info(unsigned int family, unsigned int model)
return;
if (platform->trl_msrs & TRL_LIMIT2)
dump_hsw_turbo_ratio_limits();
dump_turbo_ratio_limit2();
if (platform->trl_msrs & TRL_LIMIT1)
dump_ivt_turbo_ratio_limits();
dump_turbo_ratio_limit1();
if (platform->trl_msrs & TRL_BASE) {
dump_turbo_ratio_limits(MSR_TURBO_RATIO_LIMIT);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment