]> git.baikalelectronics.ru Git - kernel.git/commit
tools/power/x86/intel-speed-select: Fix invalid core mask
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Tue, 19 May 2020 23:28:34 +0000 (16:28 -0700)
committerSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Fri, 22 May 2020 18:18:15 +0000 (11:18 -0700)
commitfdf6aa62d2997a3acf6cc3010eff1331e4f2bdfa
treeba494b995052c143f6b8c4956d205fccc0fe4af7
parent5809b2347a7f03dd718dada91a58cf8fef65ff80
tools/power/x86/intel-speed-select: Fix invalid core mask

The core mask display is wrong in some cases. This is showing more
cpus than the mask has. This is because mask is 64 bit but it used
with BIT() macro to get the presence of CPU which doesn't support
unsigned long long. Added a new macro for BIT_ULL and use that
to get the presence of a CPU.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
tools/power/x86/intel-speed-select/isst-config.c
tools/power/x86/intel-speed-select/isst.h