diff options
author | Michael Ellerman <mpe@ellerman.id.au> | 2023-07-05 16:51:35 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2023-07-28 09:53:36 +0200 |
commit | 3f9169196be55590a794b52f49637561ddd1ba4f (patch) | |
tree | 0ebae119bbb8cea5eb762b241aec85c4353b2857 /arch/x86 | |
parent | 7a4dcb4a5de1214c4a59448a759e2e264c2c4473 (diff) | |
download | linux-stable-3f9169196be55590a794b52f49637561ddd1ba4f.tar.gz linux-stable-3f9169196be55590a794b52f49637561ddd1ba4f.tar.bz2 linux-stable-3f9169196be55590a794b52f49637561ddd1ba4f.zip |
cpu/SMT: Move SMT prototypes into cpu_smt.h
In order to export the cpuhp_smt_control enum as part of the interface
between generic and architecture code, the architecture code needs to
include asm/topology.h.
But that leads to circular header dependencies. So split the enum and
related declarations into a separate header.
[ ldufour: Reworded the commit's description ]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Laurent Dufour <ldufour@linux.ibm.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Zhang Rui <rui.zhang@intel.com>
Link: https://lore.kernel.org/r/20230705145143.40545-3-ldufour@linux.ibm.com
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/include/asm/topology.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/include/asm/topology.h b/arch/x86/include/asm/topology.h index caf41c4869a0..ae49ed4417d0 100644 --- a/arch/x86/include/asm/topology.h +++ b/arch/x86/include/asm/topology.h @@ -136,6 +136,8 @@ static inline int topology_max_smt_threads(void) return __max_smt_threads; } +#include <linux/cpu_smt.h> + int topology_update_package_map(unsigned int apicid, unsigned int cpu); int topology_update_die_map(unsigned int dieid, unsigned int cpu); int topology_phys_to_logical_pkg(unsigned int pkg); |