]> xenbits.xensource.com Git - people/julieng/linux-arm.git/commitdiff
lib/cpumask: Make CPUMASK_OFFSTACK usable without debug dependency
authorJosh Boyer <jwboyer@fedoraproject.org>
Mon, 11 Nov 2013 13:39:16 +0000 (08:39 -0500)
committerJulien Grall <julien.grall@citrix.com>
Fri, 18 Sep 2015 15:29:25 +0000 (16:29 +0100)
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.

Bugzilla: N/A
Upstream-status: Nak'd, supposedly replacement coming to auto-select

Signed-off-by: Josh Boyer <jwboyer@fedoraproject.org>
lib/Kconfig

index 3a2ef67db6c724f12b6d4ac0550ebb5fd58c5c58..4af1e7e5a611c66f08db6b26c41253981b347d8c 100644 (file)
@@ -396,7 +396,8 @@ config CHECK_SIGNATURE
        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