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