x86/topology: Make __max_die_per_package available unconditionally
authorBorislav Petkov <bp@suse.de>
Thu, 14 Jan 2021 09:36:59 +0000 (10:36 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Jan 2021 10:55:13 +0000 (11:55 +0100)
commitf19c54317e1b41bad4a74fc27513bd4d692dea9f
treececaac34187f812b19c633a1030babc75d1d4db8
parentf5ee8afc19711e1dd7bacae23712e224c1b22ba4
x86/topology: Make __max_die_per_package available unconditionally

commit 1eb8f690bcb565a6600f8b6dcc78f7b239ceba17 upstream.

Move it outside of CONFIG_SMP in order to avoid ifdeffery at the usage
sites.

Fixes: 76e2fc63ca40 ("x86/cpu/amd: Set __max_die_per_package on AMD")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20210114111814.5346-1-bp@alien8.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/include/asm/topology.h
arch/x86/kernel/cpu/topology.c