Skip to content

Commit 2da6391

Browse files
spandruvadajwrdegoede
authored andcommitted
tools/power/x86/intel-speed-select: Display error on turbo mode disabled
For Intel SST turbo-freq feature to be enabled, the turbo mode on the platform must be enabled also. If turbo mode is disabled, display error while enabling turbo-freq feature. Signed-off-by: Srinivas Pandruvada <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Hans de Goede <[email protected]>
1 parent 34604d2 commit 2da6391

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1892,6 +1892,12 @@ static void set_fact_for_cpu(int cpu, void *arg1, void *arg2, void *arg3,
18921892
int ret;
18931893
int status = *(int *)arg4;
18941894

1895+
if (status && no_turbo()) {
1896+
isst_display_error_info_message(1, "Turbo mode is disabled", 0, 0);
1897+
ret = -1;
1898+
goto disp_results;
1899+
}
1900+
18951901
ret = isst_get_ctdp_levels(cpu, &pkg_dev);
18961902
if (ret) {
18971903
isst_display_error_info_message(1, "Failed to get number of levels", 0, 0);

0 commit comments

Comments
 (0)