aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/futex-contention.py
diff options
context:
space:
mode:
authorPrarit Bhargava <[email protected]>2017-12-04 16:45:21 +0000
committerThomas Gleixner <[email protected]>2017-12-07 09:28:22 +0000
commit947134d9b00f342415af7eddd42a5fce7262a1b9 (patch)
tree5b727713b606ec88fc5d085249526f48fa7c1dfb /tools/perf/scripts/python/futex-contention.py
parentx86/vdso: Change time() prototype to match __vdso_time() (diff)
downloadkernel-947134d9b00f342415af7eddd42a5fce7262a1b9.tar.gz
kernel-947134d9b00f342415af7eddd42a5fce7262a1b9.zip
x86/smpboot: Do not use smp_num_siblings in __max_logical_packages calculation
Documentation/x86/topology.txt defines smp_num_siblings as "The number of threads in a core". Since commit bbb65d2d365e ("x86: use cpuid vector 0xb when available for detecting cpu topology") smp_num_siblings is the maximum number of threads in a core. If Simultaneous MultiThreading (SMT) is disabled on a system, smp_num_siblings is 2 and not 1 as expected. Use topology_max_smt_threads(), which contains the active numer of threads, in the __max_logical_packages calculation. On a single socket, single core, single thread system __max_smt_threads has not been updated when the __max_logical_packages calculation happens, so its zero which makes the package estimate fail. Initialize it to one, which is the minimum number of threads on a core. [ tglx: Folded the __max_smt_threads fix in ] Fixes: b4c0a7326f5d ("x86/smpboot: Fix __max_logical_packages estimate") Reported-by: Jakub Kicinski <[email protected]> Signed-off-by: Prarit Bhargava <[email protected] Signed-off-by: Thomas Gleixner <[email protected]> Tested-by: Jakub Kicinski <[email protected]> Cc: [email protected] Cc: "[email protected]" Cc: Clark Williams <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/futex-contention.py')
0 files changed, 0 insertions, 0 deletions