tools/power/x86/intel-speed-select: Max CPU count calculation when CPU0 is offline
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Thu, 5 Mar 2020 22:45:17 +0000 (14:45 -0800)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 20 Mar 2020 12:46:20 +0000 (14:46 +0200)
commit864dc09e692f55fc7a5a87c7411da0a348ac1094
tree0cbae58f92c261c9670be7851e500fb5e1895ae1
parent696691985c3191f2c4c76f09b1c7c5f3ca99d5ed
tools/power/x86/intel-speed-select: Max CPU count calculation when CPU0 is offline

Currently /sys/devices/system/cpu/cpu0/topology/thread_siblings is used to
get the max CPU count. But when CPU0 is offline, then this file will be
absent.

So add processing so that we can get count from any first CPU in the
system. which is online.

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