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