Skip to content

Commit 2fe8d2d

Browse files
committed
tools/power/x86/intel-speed-select: No TRL for non compute domains
Don't call to set or get TRL for domains in which there are no CPUs. Signed-off-by: Srinivas Pandruvada <[email protected]>
1 parent 7b00d10 commit 2fe8d2d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2574,6 +2574,9 @@ static void get_set_trl(struct isst_id *id, void *arg1, void *arg2, void *arg3,
25742574
int set = *(int *)arg4;
25752575
int ret;
25762576

2577+
if (id->cpu < 0)
2578+
return;
2579+
25772580
if (set && !fact_trl) {
25782581
isst_display_error_info_message(1, "Invalid TRL. Specify with [-t|--trl]", 0, 0);
25792582
exit(0);

0 commit comments

Comments
 (0)