diff options
author | Peter Zijlstra <peterz@infradead.org> | 2015-05-26 21:39:37 -0400 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2015-05-27 22:02:07 -0400 |
commit | 6c9692e2d6a2206d8fd75ea247daa47fb75e4a02 (patch) | |
tree | 260a11511b3b629ec1cbcdeb3417e74590028e99 /init | |
parent | 93c2e105f6bcee231c951ba0e56e84505c4b0483 (diff) |
module: Make the mod_tree stuff conditional on PERF_EVENTS || TRACING
Andrew worried about the overhead on small systems; only use the fancy
code when either perf or tracing is enabled.
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Steven Rostedt <rostedt@goodmis.org>
Requested-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'init')
-rw-r--r-- | init/Kconfig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/init/Kconfig b/init/Kconfig index dc24dec60232..968a001790af 100644 --- a/init/Kconfig +++ b/init/Kconfig | |||
@@ -1989,6 +1989,10 @@ endchoice | |||
1989 | 1989 | ||
1990 | endif # MODULES | 1990 | endif # MODULES |
1991 | 1991 | ||
1992 | config MODULES_TREE_LOOKUP | ||
1993 | def_bool y | ||
1994 | depends on PERF_EVENTS || TRACING | ||
1995 | |||
1992 | config INIT_ALL_POSSIBLE | 1996 | config INIT_ALL_POSSIBLE |
1993 | bool | 1997 | bool |
1994 | help | 1998 | help |