cpumask: Add CONFIG_CPUMASK_OFFSTACK

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>
---
 lib/Kconfig |    7 +++++++
 1 file changed, 7 insertions(+)

diff -r ef141e54478f lib/Kconfig
--- a/lib/Kconfig	Thu Nov 20 00:18:23 2008 +1030
+++ b/lib/Kconfig	Thu Nov 20 00:19:05 2008 +1030
@@ -157,4 +157,11 @@
 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
