]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
cpu/hotplug: Remove dependancy against cpu_primary_thread_mask
authorLaurent Dufour <ldufour@linux.ibm.com>
Wed, 5 Jul 2023 14:51:34 +0000 (16:51 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Nov 2023 10:56:44 +0000 (11:56 +0100)
commit2909a6404460b8ccc6b8fa6f0010683599cdc85b
treed6251e7686f8bb8e774b8d7f62abe14d0b6ca3b7
parent147a1ba15c5fc21380e154fc36161e398fc7ef1a
cpu/hotplug: Remove dependancy against cpu_primary_thread_mask

[ Upstream commit 7a4dcb4a5de1214c4a59448a759e2e264c2c4473 ]

The commit 18415f33e2ac ("cpu/hotplug: Allow "parallel" bringup up to
CPUHP_BP_KICK_AP_STATE") introduce a dependancy against a global variable
cpu_primary_thread_mask exported by the X86 code. This variable is only
used when CONFIG_HOTPLUG_PARALLEL is set.

Since cpuhp_get_primary_thread_mask() and cpuhp_smt_aware() are only used
when CONFIG_HOTPLUG_PARALLEL is set, don't define them when it is not set.

No functional change.

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-2-ldufour@linux.ibm.com
Stable-dep-of: d91bdd96b55c ("cpu/SMT: Make SMT control more robust against enumeration failures")
Signed-off-by: Sasha Levin <sashal@kernel.org>
kernel/cpu.c