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