Skip to content

Commit

Permalink
cpumask: Add CONFIG_CPUMASK_OFFSTACK
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Rusty Russell committed Dec 13, 2008
1 parent 320ab2b commit aab46da
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -157,4 +157,11 @@ config CHECK_SIGNATURE
config HAVE_LMB
boolean

config CPUMASK_OFFSTACK
bool "Force CPU masks off stack" if DEBUG_PER_CPU_MAPS
help
Use dynamic allocation for cpumask_var_t, instead of putting
them on the stack. This is a bit more expensive, but avoids
stack overflow.

endmenu

0 comments on commit aab46da

Please sign in to comment.