mirror of
https://github.com/torvalds/linux.git
synced 2026-05-21 13:27:57 +02:00
tools/power/x86/intel-speed-select: Present all TRL levels for turbo-freq
For turbo-freq feature, only 3 levels of frequencies are displayed even if platform support more. Present all levels based on the CPU model. Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
parent
55d5639bda
commit
38fa152b3d
|
|
@ -746,6 +746,7 @@ static int mbox_set_pbf_fact_status(struct isst_id *id, int pbf, int enable)
|
|||
static int _get_fact_bucket_info(struct isst_id *id, int level,
|
||||
struct isst_fact_bucket_info *bucket_info)
|
||||
{
|
||||
int trl_max_levels = isst_get_trl_max_levels();
|
||||
unsigned int resp;
|
||||
int i, k, ret;
|
||||
|
||||
|
|
@ -769,7 +770,7 @@ static int _get_fact_bucket_info(struct isst_id *id, int level,
|
|||
}
|
||||
}
|
||||
|
||||
for (k = 0; k < 3; ++k) {
|
||||
for (k = 0; k < trl_max_levels; ++k) {
|
||||
for (i = 0; i < 2; ++i) {
|
||||
int j;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user