tools/power/x86/intel-speed-select: Fix cpu-count output
authorPrarit Bhargava <prarit@redhat.com>
Thu, 5 Sep 2019 12:03:05 +0000 (08:03 -0400)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Sat, 7 Sep 2019 18:19:13 +0000 (21:19 +0300)
commit3ec2aef1b03eefeffe93817bd04068d3805d4a98
tree91dc1c54c772726f2f93da8ad97fdeb5f52ba709
parent43774c0dccb405a0b63a10829d45db4b74c29e40
tools/power/x86/intel-speed-select: Fix cpu-count output

I have a system with 28 threads/socket but intel-speed-select reports
a cpu-count of 29.

Fix an off-by-one error in the cpu_count() function.

Signed-off-by: Prarit Bhargava <prarit@redhat.com>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Cc: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Cc: David Arcari <darcari@redhat.com>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
tools/power/x86/intel-speed-select/isst-config.c