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