diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2008-12-13 05:50:27 -0500 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2008-12-13 05:50:27 -0500 |
commit | aab46da0520af9c99b7802cebe4f14a81ff39415 (patch) | |
tree | f48ba155e9accb165f03c31b7ed9eed9b057b59e | |
parent | 320ab2b0b1e08e3805a3e1084a2f0eb1938d5d67 (diff) |
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>
-rw-r--r-- | lib/Kconfig | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Kconfig b/lib/Kconfig index 85cf7ea978aa..7823f8342abf 100644 --- a/lib/Kconfig +++ b/lib/Kconfig | |||
@@ -157,4 +157,11 @@ config CHECK_SIGNATURE | |||
157 | config HAVE_LMB | 157 | config HAVE_LMB |
158 | boolean | 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 | endmenu | 167 | endmenu |