mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-09 06:33:34 +00:00
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>
This commit is contained in:
parent
7b00d1018c
commit
2fe8d2d791
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user