[2/2] tools/power/x86/intel-speed-select: Fix last cpu number
diff mbox series

Message ID 20200303225044.362525-3-srinivas.pandruvada@linux.intel.com
State Accepted
Commit ced2f5304d1409805edd661b5f32092f3878be05
Headers show
Series
  • tools/power/x86/intel-speed-select: Bug fixes for
Related show

Commit Message

Srinivas Pandruvada March 3, 2020, 10:50 p.m. UTC
Here topology_max_cpus is used for total CPU count, not the last CPU
number. So remove "-1".

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
---
 tools/power/x86/intel-speed-select/isst-config.c | 1 -
 1 file changed, 1 deletion(-)

Patch
diff mbox series

diff --git a/tools/power/x86/intel-speed-select/isst-config.c b/tools/power/x86/intel-speed-select/isst-config.c
index 50db0cd23d8c..c922cfd7ba50 100644
--- a/tools/power/x86/intel-speed-select/isst-config.c
+++ b/tools/power/x86/intel-speed-select/isst-config.c
@@ -313,7 +313,6 @@  static void set_max_cpu_num(void)
 	while (fscanf(filep, "%lx,", &dummy) == 1)
 		topo_max_cpus += BITMASK_SIZE;
 	fclose(filep);
-	topo_max_cpus--; /* 0 based */
 
 	debug_printf("max cpus %d\n", topo_max_cpus);
 }