Commit aab46da0520af9c99b7802cebe4f14a81ff39415

Authored by Rusty Russell
1 parent 320ab2b0b1

cpumask: Add CONFIG_CPUMASK_OFFSTACK

Impact: Add config option to enable code in cpumask.h

Currently it can be set if DEBUG_PER_CPU_MAPS, or set specifically by
an arch.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

Showing 1 changed file with 7 additions and 0 deletions Side-by-side Diff

... ... @@ -157,5 +157,12 @@
157 157 config HAVE_LMB
158 158 boolean
159 159  
  160 +config CPUMASK_OFFSTACK
  161 + bool "Force CPU masks off stack" if DEBUG_PER_CPU_MAPS
  162 + help
  163 + Use dynamic allocation for cpumask_var_t, instead of putting
  164 + them on the stack. This is a bit more expensive, but avoids
  165 + stack overflow.
  166 +
160 167 endmenu