cpu/SMT: Move SMT prototypes into cpu_smt.h
authorMichael Ellerman <mpe@ellerman.id.au>
Wed, 5 Jul 2023 14:51:35 +0000 (16:51 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 28 Jul 2023 07:53:36 +0000 (09:53 +0200)
commit3f9169196be55590a794b52f49637561ddd1ba4f
tree0ebae119bbb8cea5eb762b241aec85c4353b2857
parent7a4dcb4a5de1214c4a59448a759e2e264c2c4473
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
arch/x86/include/asm/topology.h
include/linux/cpu.h
include/linux/cpu_smt.h [new file with mode: 0644]
kernel/cpu.c