]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86/cpu/topology: Provide detect_extended_topology_early()
authorThomas Gleixner <tglx@linutronix.de>
Tue, 5 Jun 2018 22:55:39 +0000 (00:55 +0200)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 10 Aug 2018 22:56:36 +0000 (18:56 -0400)
commitce7f3678e9a01ef8af8b455d01dc6d3989f96a3b
tree183f1a5d8dda6442271ab6e6af03b9785683f23f
parent7b32a4c42e9f8346bf5802edd2257134b5ff1b2e
x86/cpu/topology: Provide detect_extended_topology_early()

To support force disabling of SMT it's required to know the number of
thread siblings early. detect_extended_topology() cannot be called before
the APIC driver is selected, so split out the part which initializes
smp_num_siblings.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Acked-by: Ingo Molnar <mingo@kernel.org>
Orabug: 28220674
CVE: CVE-2018-3620

(cherry picked from commit 95f3d39ccf7aaea79d1ffdac1c887c2e100ec1b6)

Signed-off-by: Mihai Carabas <mihai.carabas@oracle.com>
Reviewed-by: Darren Kenny <darren.kenny@oracle.com>
Conflicts:
arch/x86/kernel/cpu/cpu.h
arch/x86/kernel/cpu/topology.c
Contextual
arch/x86/include/asm/processor.h
arch/x86/kernel/cpu/cpu.h
arch/x86/kernel/cpu/topology.c