]> git.hungrycats.org Git - linux/commit
x86/cpu/common: Provide detect_ht_early()
authorThomas Gleixner <tglx@linutronix.de>
Tue, 5 Jun 2018 22:53:57 +0000 (00:53 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Aug 2018 16:11:01 +0000 (18:11 +0200)
commit06ebc9fd87005eb56c08aea3f2844aca5fc37c78
tree3b493d391d119da7b8568b831dc9a05ca774b799
parent9087f7047f6e6d25ada0cb6643ec27aba810d77b
x86/cpu/common: Provide detect_ht_early()

commit 545401f4448a807b963ff17b575e0a393e68b523 upstream

To support force disabling of SMT it's required to know the number of
thread siblings early. detect_ht() 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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kernel/cpu/common.c
arch/x86/kernel/cpu/cpu.h