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:
parent
8ddbda7624
commit
ced2f5304d
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user