]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
tools/power/x86/intel-speed-select: Increase CPU count
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Fri, 15 May 2020 19:46:37 +0000 (12:46 -0700)
committerSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Fri, 22 May 2020 18:18:15 +0000 (11:18 -0700)
Increase CPU count so that more than 64 is supported in one request.

For example:
sudo ./intel-speed-select -d --cpu 0-66 core-power assoc -clos 0
The above command stops at 63. With this change, it can support more
CPU numbers from 0-255.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
tools/power/x86/intel-speed-select/isst-config.c

index 4cccabb226dbfc6db5a0bd29e4bb2d56e7c5e144..8b99e403e68ce4d3cf59660d04a5977df81ef298 100644 (file)
@@ -25,7 +25,7 @@ static FILE *outf;
 static int cpu_model;
 static int cpu_stepping;
 
-#define MAX_CPUS_IN_ONE_REQ 64
+#define MAX_CPUS_IN_ONE_REQ 256
 static short max_target_cpus;
 static unsigned short target_cpus[MAX_CPUS_IN_ONE_REQ];