diff options
author | Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> | 2023-09-07 17:12:55 -0700 |
---|---|---|
committer | Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> | 2023-10-17 11:55:37 -0700 |
commit | 2fe8d2d7911fb4e380c3dcb5655e1a62bb14f75e (patch) | |
tree | f975387d38a7c56dc5fc99957b8d6d94dc3c47cf /tools/power | |
parent | 7b00d1018c8c8ed55aa1393b2ca234400eb6ca86 (diff) |
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 <srinivas.pandruvada@linux.intel.com>
Diffstat (limited to 'tools/power')
-rw-r--r-- | tools/power/x86/intel-speed-select/isst-config.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/power/x86/intel-speed-select/isst-config.c b/tools/power/x86/intel-speed-select/isst-config.c index 72be2d4db21c..1afaaa833a54 100644 --- a/tools/power/x86/intel-speed-select/isst-config.c +++ b/tools/power/x86/intel-speed-select/isst-config.c @@ -2574,6 +2574,9 @@ static void get_set_trl(struct isst_id *id, void *arg1, void *arg2, void *arg3, int set = *(int *)arg4; int ret; + if (id->cpu < 0) + return; + if (set && !fact_trl) { isst_display_error_info_message(1, "Invalid TRL. Specify with [-t|--trl]", 0, 0); exit(0); |