tools/power/x86/intel-speed-select: Fix last cpu number

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>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
This commit is contained in:
Srinivas Pandruvada 2020-03-03 14:50:44 -08:00 committed by Andy Shevchenko
parent 8ddbda7624
commit ced2f5304d

View File

@ -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);
}