713abc0
From: Josh Boyer <jwboyer@fedoraproject.org>
713abc0
Date: Mon, 11 Nov 2013 08:39:16 -0500
713abc0
Subject: [PATCH] lib/cpumask: Make CPUMASK_OFFSTACK usable without debug
713abc0
 dependency
713abc0
713abc0
When CPUMASK_OFFSTACK was added in 2008, it was dependent upon
713abc0
DEBUG_PER_CPU_MAPS being enabled, or an architecture could select it.
713abc0
The debug dependency adds additional overhead that isn't required for
713abc0
operation of the feature, and we need CPUMASK_OFFSTACK to increase the
713abc0
NR_CPUS value beyond 512 on x86.  We drop the current dependency and make
713abc0
sure SMP is set.
713abc0
6a91557
Bugzilla: N/A
6a91557
Upstream-status: Nak'd, supposedly replacement coming to auto-select
6a91557
713abc0
Signed-off-by: Josh Boyer <jwboyer@fedoraproject.org>
713abc0
---
713abc0
 lib/Kconfig | 3 ++-
713abc0
 1 file changed, 2 insertions(+), 1 deletion(-)
713abc0
713abc0
diff --git a/lib/Kconfig b/lib/Kconfig
f6be211
index 3a2ef67db6c7..4af1e7e5a611 100644
713abc0
--- a/lib/Kconfig
713abc0
+++ b/lib/Kconfig
f6be211
@@ -396,7 +396,8 @@ config CHECK_SIGNATURE
713abc0
 	bool
713abc0
 
713abc0
 config CPUMASK_OFFSTACK
713abc0
-	bool "Force CPU masks off stack" if DEBUG_PER_CPU_MAPS
713abc0
+	bool "Force CPU masks off stack"
713abc0
+	depends on SMP
713abc0
 	help
713abc0
 	  Use dynamic allocation for cpumask_var_t, instead of putting
713abc0
 	  them on the stack.  This is a bit more expensive, but avoids