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