68d0d6
Bugzilla: N/A
68d0d6
Upstream-status: Nak'd, supposedly replacement coming to auto-select
68d0d6
713abc
From 0f3f5c5b4ca2eb1f41947c50bedb9b17aa1a1f80 Mon Sep 17 00:00:00 2001
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
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
713abc
index b3c8be0..50b47cd 100644
713abc
--- a/lib/Kconfig
713abc
+++ b/lib/Kconfig
713abc
@@ -342,7 +342,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
713abc
-- 
713abc
1.8.3.1
713abc