summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2015-05-27 03:39:37 +0200
committerRusty Russell <rusty@rustcorp.com.au>2015-05-28 04:02:07 +0200
commit6c9692e2d6a2206d8fd75ea247daa47fb75e4a02 (patch)
tree260a11511b3b629ec1cbcdeb3417e74590028e99 /init
parentmodule: Optimize __module_address() using a latched RB-tree (diff)
downloadlinux-6c9692e2d6a2206d8fd75ea247daa47fb75e4a02.tar.xz
linux-6c9692e2d6a2206d8fd75ea247daa47fb75e4a02.zip
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/Kconfig4
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
endif # MODULES
+config MODULES_TREE_LOOKUP
+ def_bool y
+ depends on PERF_EVENTS || TRACING
+
config INIT_ALL_POSSIBLE
bool
help