orgads / rpms / kernel

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