Skip to content

Commit 8395d43

Browse files
superm1shuahkh
authored andcommitted
cpupower: Adjust whitespace for amd-pstate specific prints
The amd-pstate section is grouped under boost, which isn't appropriate. Adjust the indentation so that it is it's own section. Link: https://lore.kernel.org/r/20241218191144.3440854-8-superm1@kernel.org Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
1 parent acf7126 commit 8395d43

File tree

1 file changed

+6
-4
lines changed
  • tools/power/cpupower/utils/helpers

1 file changed

+6
-4
lines changed

tools/power/cpupower/utils/helpers/amd.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,9 @@ void amd_pstate_boost_init(unsigned int cpu, int *support, int *active)
219219

220220
void amd_pstate_show_perf_and_freq(unsigned int cpu, int no_rounding)
221221
{
222-
printf(_(" AMD PSTATE Highest Performance: %lu. Maximum Frequency: "),
222+
223+
printf(_(" amd-pstate limits:\n"));
224+
printf(_(" Highest Performance: %lu. Maximum Frequency: "),
223225
amd_pstate_get_data(cpu, AMD_PSTATE_HIGHEST_PERF));
224226
/*
225227
* If boost isn't active, the cpuinfo_max doesn't indicate real max
@@ -228,19 +230,19 @@ void amd_pstate_show_perf_and_freq(unsigned int cpu, int no_rounding)
228230
print_speed(amd_pstate_get_data(cpu, AMD_PSTATE_MAX_FREQ), no_rounding);
229231
printf(".\n");
230232

231-
printf(_(" AMD PSTATE Nominal Performance: %lu. Nominal Frequency: "),
233+
printf(_(" Nominal Performance: %lu. Nominal Frequency: "),
232234
acpi_cppc_get_data(cpu, NOMINAL_PERF));
233235
print_speed(acpi_cppc_get_data(cpu, NOMINAL_FREQ) * 1000,
234236
no_rounding);
235237
printf(".\n");
236238

237-
printf(_(" AMD PSTATE Lowest Non-linear Performance: %lu. Lowest Non-linear Frequency: "),
239+
printf(_(" Lowest Non-linear Performance: %lu. Lowest Non-linear Frequency: "),
238240
acpi_cppc_get_data(cpu, LOWEST_NONLINEAR_PERF));
239241
print_speed(amd_pstate_get_data(cpu, AMD_PSTATE_LOWEST_NONLINEAR_FREQ),
240242
no_rounding);
241243
printf(".\n");
242244

243-
printf(_(" AMD PSTATE Lowest Performance: %lu. Lowest Frequency: "),
245+
printf(_(" Lowest Performance: %lu. Lowest Frequency: "),
244246
acpi_cppc_get_data(cpu, LOWEST_PERF));
245247
print_speed(acpi_cppc_get_data(cpu, LOWEST_FREQ) * 1000, no_rounding);
246248
printf(".\n");

0 commit comments

Comments
 (0)