diff mbox series

[v5,4/4] arm64: Kconfig: Enable HOTPLUG_SMT

Message ID 20240806085320.63514-5-yangyicong@huawei.com (mailing list archive)
State New, archived
Headers show
Series Support SMT control on arm64 | expand

Commit Message

Yicong Yang Aug. 6, 2024, 8:53 a.m. UTC
From: Yicong Yang <yangyicong@hisilicon.com>

Enable HOTPLUG_SMT for SMT control.

Signed-off-by: Yicong Yang <yangyicong@hisilicon.com>
---
 arch/arm64/Kconfig | 1 +
 1 file changed, 1 insertion(+)

Comments

Pierre Gondois Aug. 27, 2024, 3:40 p.m. UTC | #1
Hello Yicong,

Is it necessary to have an explicit dependency over SMP for arm64 ? Cf.
   commit 4b3dc9679cf7 ("arm64: force CONFIG_SMP=y and remove redundant #ifdefs")

Regards,
Pierre

On 8/6/24 10:53, Yicong Yang wrote:
> From: Yicong Yang <yangyicong@hisilicon.com>
> 
> Enable HOTPLUG_SMT for SMT control.
> 
> Signed-off-by: Yicong Yang <yangyicong@hisilicon.com>
> ---
>   arch/arm64/Kconfig | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
> index a2f8ff354ca6..bd3bc2f5e0ec 100644
> --- a/arch/arm64/Kconfig
> +++ b/arch/arm64/Kconfig
> @@ -238,6 +238,7 @@ config ARM64
>   	select HAVE_KRETPROBES
>   	select HAVE_GENERIC_VDSO
>   	select HOTPLUG_CORE_SYNC_DEAD if HOTPLUG_CPU
> +	select HOTPLUG_SMT if (SMP && HOTPLUG_CPU)
>   	select IRQ_DOMAIN
>   	select IRQ_FORCED_THREADING
>   	select KASAN_VMALLOC if KASAN
Yicong Yang Aug. 29, 2024, 6:50 a.m. UTC | #2
On 2024/8/27 23:40, Pierre Gondois wrote:
> Hello Yicong,
> 
> Is it necessary to have an explicit dependency over SMP for arm64 ? Cf.
>   commit 4b3dc9679cf7 ("arm64: force CONFIG_SMP=y and remove redundant #ifdefs")

Thanks for the information. Then it's redundant to depend on CONFIG_SMP. Will drop it.

> 
> Regards,
> Pierre
> 
> On 8/6/24 10:53, Yicong Yang wrote:
>> From: Yicong Yang <yangyicong@hisilicon.com>
>>
>> Enable HOTPLUG_SMT for SMT control.
>>
>> Signed-off-by: Yicong Yang <yangyicong@hisilicon.com>
>> ---
>>   arch/arm64/Kconfig | 1 +
>>   1 file changed, 1 insertion(+)
>>
>> diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
>> index a2f8ff354ca6..bd3bc2f5e0ec 100644
>> --- a/arch/arm64/Kconfig
>> +++ b/arch/arm64/Kconfig
>> @@ -238,6 +238,7 @@ config ARM64
>>       select HAVE_KRETPROBES
>>       select HAVE_GENERIC_VDSO
>>       select HOTPLUG_CORE_SYNC_DEAD if HOTPLUG_CPU
>> +    select HOTPLUG_SMT if (SMP && HOTPLUG_CPU)
>>       select IRQ_DOMAIN
>>       select IRQ_FORCED_THREADING
>>       select KASAN_VMALLOC if KASAN
> 
> .
diff mbox series

Patch

diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
index a2f8ff354ca6..bd3bc2f5e0ec 100644
--- a/arch/arm64/Kconfig
+++ b/arch/arm64/Kconfig
@@ -238,6 +238,7 @@  config ARM64
 	select HAVE_KRETPROBES
 	select HAVE_GENERIC_VDSO
 	select HOTPLUG_CORE_SYNC_DEAD if HOTPLUG_CPU
+	select HOTPLUG_SMT if (SMP && HOTPLUG_CPU)
 	select IRQ_DOMAIN
 	select IRQ_FORCED_THREADING
 	select KASAN_VMALLOC if KASAN