diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2018-06-06 00:55:39 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-08-15 18:14:46 +0200 |
commit | 3b4f20ad388755d8b049b6b7387cbb847d142af6 (patch) | |
tree | 9ee31233307a8d1d5ef0f1f83dd85e66c8909026 /arch/x86/kernel/cpu/cpu.h | |
parent | 691997bff5ff7e69b63c30ef36a29afc4a861c4e (diff) | |
download | linux-stable-3b4f20ad388755d8b049b6b7387cbb847d142af6.tar.gz linux-stable-3b4f20ad388755d8b049b6b7387cbb847d142af6.tar.bz2 linux-stable-3b4f20ad388755d8b049b6b7387cbb847d142af6.zip |
x86/cpu/topology: Provide detect_extended_topology_early()
commit 95f3d39ccf7aaea79d1ffdac1c887c2e100ec1b6 upstream
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>
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/x86/kernel/cpu/cpu.h')
-rw-r--r-- | arch/x86/kernel/cpu/cpu.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kernel/cpu/cpu.h b/arch/x86/kernel/cpu/cpu.h index 18ec2b004dde..2275900d4d1b 100644 --- a/arch/x86/kernel/cpu/cpu.h +++ b/arch/x86/kernel/cpu/cpu.h @@ -46,6 +46,7 @@ extern const struct cpu_dev *const __x86_cpu_dev_start[], extern void get_cpu_cap(struct cpuinfo_x86 *c); extern void cpu_detect_cache_sizes(struct cpuinfo_x86 *c); +extern int detect_extended_topology_early(struct cpuinfo_x86 *c); extern int detect_ht_early(struct cpuinfo_x86 *c); extern void x86_spec_ctrl_setup_ap(void); |