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