Skip to content

Commit e78fded

Browse files
committed
tools/power/x86/intel-speed-select: Change debug to error
When turbo-freq is enabled, we can't disable core-power. Currently it prints debug message to warn. Change this to error message. While here remove "\n" from calls to isst_display_error_info_message(), as it will be added again during actual print. Signed-off-by: Srinivas Pandruvada <[email protected]>
1 parent d307f17 commit e78fded

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/power/x86/intel-speed-select/isst-core.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -912,16 +912,16 @@ int isst_pm_qos_config(int cpu, int enable_clos, int priority_type)
912912
return ret;
913913

914914
if (ctdp_level.fact_enabled) {
915-
debug_printf("Turbo-freq feature must be disabled first\n");
915+
isst_display_error_info_message(1, "Ignoring request, turbo-freq feature is still enabled", 0, 0);
916916
return -EINVAL;
917917
}
918918
ret = isst_write_pm_config(cpu, 0);
919919
if (ret)
920-
isst_display_error_info_message(0, "WRITE_PM_CONFIG command failed, ignoring error\n", 0, 0);
920+
isst_display_error_info_message(0, "WRITE_PM_CONFIG command failed, ignoring error", 0, 0);
921921
} else {
922922
ret = isst_write_pm_config(cpu, 1);
923923
if (ret)
924-
isst_display_error_info_message(0, "WRITE_PM_CONFIG command failed, ignoring error\n", 0, 0);
924+
isst_display_error_info_message(0, "WRITE_PM_CONFIG command failed, ignoring error", 0, 0);
925925
}
926926

927927
ret = isst_send_mbox_command(cpu, CONFIG_CLOS, CLOS_PM_QOS_CONFIG, 0, 0,

0 commit comments

Comments
 (0)