tools/power/x86/intel-speed-select: Fix last cpu number
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Tue, 3 Mar 2020 22:50:44 +0000 (14:50 -0800)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 20 Mar 2020 12:46:01 +0000 (14:46 +0200)
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>
tools/power/x86/intel-speed-select/isst-config.c

index 50db0cd..c922cfd 100644 (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);
 }