mirror of
https://github.com/torvalds/linux.git
synced 2024-11-25 21:51:40 +00:00
tools/power/x86/intel-speed-select: Display error for core-power support
When core-power is getting enabled, if the feaure is not supported, display error. Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
This commit is contained in:
parent
2fe8d2d791
commit
da4c1b9e8f
@ -2242,6 +2242,14 @@ static void enable_clos_qos_config(struct isst_id *id, void *arg1, void *arg2, v
|
||||
{
|
||||
int ret;
|
||||
int status = *(int *)arg4;
|
||||
int cp_state, cp_cap;
|
||||
|
||||
if (!isst_read_pm_config(id, &cp_state, &cp_cap)) {
|
||||
if (!cp_cap) {
|
||||
isst_display_error_info_message(1, "core-power not supported", 0, 0);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (is_skx_based_platform())
|
||||
clos_priority_type = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user