Blob Blame History Raw
From 099c2961d55ed20d8bf997408167b263cf62d427 Mon Sep 17 00:00:00 2001
From: Andrea Arcangeli <aarcange@redhat.com>
Date: Fri, 21 Feb 2020 18:20:24 -0500
Subject: [PATCH 2/3] arm64: select CPUMASK_OFFSTACK if NUMA
Message-ID: <20200223192520.20808-3-aarcange@redhat.com>
References: bsc#1183033, bsc#1183030
Patch-mainline: Submitted, linux-arm ML

It's unclear why normally CPUMASK_OFFSTACK can only be manually
configured "if DEBUG_PER_CPU_MAPS" which is not an option meant to be
enabled on enterprise arm64 kernels.

The default enterprise kernels NR_CPUS is 4096 which is fairly large.
So it'll save some RAM and it'll increase reliability to select
CPUMASK_OFFSET at least when NUMA is selected and a large NR_CPUS is
to be expected.

Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

---
 arch/arm64/Kconfig |    1 +
 1 file changed, 1 insertion(+)

--- a/arch/arm64/Kconfig
+++ b/arch/arm64/Kconfig
@@ -903,6 +903,7 @@ config NUMA
 	select GENERIC_ARCH_NUMA
 	select ACPI_NUMA if ACPI
 	select OF_NUMA
+	select CPUMASK_OFFSTACK
 	help
 	  Enable NUMA (Non-Uniform Memory Access) support.