x86/AMD: distinguish compute units from hyper-threads
authorJan Beulich <jbeulich@suse.com>
Thu, 19 Jul 2018 07:42:42 +0000 (09:42 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 19 Jul 2018 07:42:42 +0000 (09:42 +0200)
commit9429b07a0af7f92a5f25e4068e11db881e157495
tree898598d92c39dcbf51fd608c65b86c1ad03dd6da
parentcb1ae9a27819cea0c5008773c68a7be6f37eb0e5
x86/AMD: distinguish compute units from hyper-threads

Fam17 replaces CUs by HTs, which we should reflect accordingly, even if
the difference is not very big. The most relevant change (requiring some
code restructuring) is that the topoext feature no longer means there is
a valid CU ID.

Take the opportunity and convert wrongly plain int variables in
set_cpu_sibling_map() to unsigned int.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Brian Woods <brian.woods@amd.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/cpu/amd.c
xen/arch/x86/smpboot.c