aboutsummaryrefslogtreecommitdiffstats
path: root/lib/string_helpers.c
diff options
context:
space:
mode:
authorPeter Zijlstra <[email protected]>2016-03-25 14:52:34 +0000
committerThomas Gleixner <[email protected]>2016-03-29 08:45:04 +0000
commitee6825c80e870fff1a370c718ec77022ade0889b (patch)
treeea5476978095b97d911d00e5a21c1c769c7f401a /lib/string_helpers.c
parentLinux 4.6-rc1 (diff)
downloadkernel-ee6825c80e870fff1a370c718ec77022ade0889b.tar.gz
kernel-ee6825c80e870fff1a370c718ec77022ade0889b.zip
x86/topology: Fix AMD core count
It turns out AMD gets x86_max_cores wrong when there are compute units. The issue is that Linux assumes: nr_logical_cpus = nr_cores * nr_siblings But AMD reports its CU unit as 2 cores, but then sets num_smp_siblings to 2 as well. Boris: fixup ras/mce_amd_inj.c too, to compute the Node Base Core properly, according to the new nomenclature. Fixes: 1f12e32f4cd5 ("x86/topology: Create logical package id") Reported-by: Xiong Zhou <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Cc: Andreas Herrmann <[email protected]> Cc: Andy Lutomirski <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Thomas Gleixner <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions