linuxtorvalds / rpms / kernel

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