[PATCH v2] LoongArch: Select HAVE_VIRT_CPU_ACCOUNTING_GEN always

Bibo Mao posted 1 patch 11 months, 2 weeks ago
arch/loongarch/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH v2] LoongArch: Select HAVE_VIRT_CPU_ACCOUNTING_GEN always
Posted by Bibo Mao 11 months, 2 weeks ago
Option HAVE_VIRT_CPU_ACCOUNTING_GEN is selected by default for 64bit
system in kconfig file arch/Kconfig. There is another selection in file
arch/loongarch/Kconfig if SMP is not selected, it brings out some
misunderstanding for non-SMP case. Here always select option
HAVE_VIRT_CPU_ACCOUNTING_GEN for future possible 32bit system.

Signed-off-by: Bibo Mao <maobibo@loongson.cn>
---
v1 ... v2:
  1. Select HAVE_VIRT_CPU_ACCOUNTING_GEN always for possible 32bit system.
---
 arch/loongarch/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/loongarch/Kconfig b/arch/loongarch/Kconfig
index 2b8bd27a852f..8d0885b165a2 100644
--- a/arch/loongarch/Kconfig
+++ b/arch/loongarch/Kconfig
@@ -175,7 +175,7 @@ config LOONGARCH
 	select HAVE_STACKPROTECTOR
 	select HAVE_SYSCALL_TRACEPOINTS
 	select HAVE_TIF_NOHZ
-	select HAVE_VIRT_CPU_ACCOUNTING_GEN if !SMP
+	select HAVE_VIRT_CPU_ACCOUNTING_GEN
 	select IRQ_FORCED_THREADING
 	select IRQ_LOONGARCH_CPU
 	select LOCK_MM_AND_FIND_VMA

base-commit: d082ecbc71e9e0bf49883ee4afd435a77a5101b6
-- 
2.39.3
Re: [PATCH v2] LoongArch: Select HAVE_VIRT_CPU_ACCOUNTING_GEN always
Posted by Huacai Chen 11 months, 2 weeks ago
Applied, thanks.

Huacai

On Tue, Feb 25, 2025 at 5:24 PM Bibo Mao <maobibo@loongson.cn> wrote:
>
> Option HAVE_VIRT_CPU_ACCOUNTING_GEN is selected by default for 64bit
> system in kconfig file arch/Kconfig. There is another selection in file
> arch/loongarch/Kconfig if SMP is not selected, it brings out some
> misunderstanding for non-SMP case. Here always select option
> HAVE_VIRT_CPU_ACCOUNTING_GEN for future possible 32bit system.
>
> Signed-off-by: Bibo Mao <maobibo@loongson.cn>
> ---
> v1 ... v2:
>   1. Select HAVE_VIRT_CPU_ACCOUNTING_GEN always for possible 32bit system.
> ---
>  arch/loongarch/Kconfig | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/loongarch/Kconfig b/arch/loongarch/Kconfig
> index 2b8bd27a852f..8d0885b165a2 100644
> --- a/arch/loongarch/Kconfig
> +++ b/arch/loongarch/Kconfig
> @@ -175,7 +175,7 @@ config LOONGARCH
>         select HAVE_STACKPROTECTOR
>         select HAVE_SYSCALL_TRACEPOINTS
>         select HAVE_TIF_NOHZ
> -       select HAVE_VIRT_CPU_ACCOUNTING_GEN if !SMP
> +       select HAVE_VIRT_CPU_ACCOUNTING_GEN
>         select IRQ_FORCED_THREADING
>         select IRQ_LOONGARCH_CPU
>         select LOCK_MM_AND_FIND_VMA
>
> base-commit: d082ecbc71e9e0bf49883ee4afd435a77a5101b6
> --
> 2.39.3
>