@@ -177,13 +177,17 @@ enum amd_pstate_value {
177
177
AMD_PSTATE_HIGHEST_PERF ,
178
178
AMD_PSTATE_MAX_FREQ ,
179
179
AMD_PSTATE_LOWEST_NONLINEAR_FREQ ,
180
+ AMD_PSTATE_HW_PREFCORE ,
181
+ AMD_PSTATE_PREFCORE_RANKING ,
180
182
MAX_AMD_PSTATE_VALUE_READ_FILES ,
181
183
};
182
184
183
185
static const char * amd_pstate_value_files [MAX_AMD_PSTATE_VALUE_READ_FILES ] = {
184
186
[AMD_PSTATE_HIGHEST_PERF ] = "amd_pstate_highest_perf" ,
185
187
[AMD_PSTATE_MAX_FREQ ] = "amd_pstate_max_freq" ,
186
188
[AMD_PSTATE_LOWEST_NONLINEAR_FREQ ] = "amd_pstate_lowest_nonlinear_freq" ,
189
+ [AMD_PSTATE_HW_PREFCORE ] = "amd_pstate_hw_prefcore" ,
190
+ [AMD_PSTATE_PREFCORE_RANKING ] = "amd_pstate_prefcore_ranking" ,
187
191
};
188
192
189
193
static unsigned long amd_pstate_get_data (unsigned int cpu ,
@@ -240,6 +244,10 @@ void amd_pstate_show_perf_and_freq(unsigned int cpu, int no_rounding)
240
244
acpi_cppc_get_data (cpu , LOWEST_PERF ));
241
245
print_speed (acpi_cppc_get_data (cpu , LOWEST_FREQ ) * 1000 , no_rounding );
242
246
printf (".\n" );
247
+
248
+ printf (_ (" Preferred Core Support: %lu. Preferred Core Ranking: %lu.\n" ),
249
+ amd_pstate_get_data (cpu , AMD_PSTATE_HW_PREFCORE ),
250
+ amd_pstate_get_data (cpu , AMD_PSTATE_PREFCORE_RANKING ));
243
251
}
244
252
245
253
/* AMD P-State Helper Functions ************************************/
0 commit comments