perf_counter: Set the CONFIG_PERF_COUNTERS default to y if CONFIG_PROFILING=y
authorIngo Molnar <mingo@elte.hu>
Mon, 29 Jun 2009 08:40:20 +0000 (10:40 +0200)
committerIngo Molnar <mingo@elte.hu>
Tue, 4 Aug 2009 16:19:30 +0000 (18:19 +0200)
If user has already enabled profiling support in the kernel
(for oprofile, old-style profiling of ftrace) then offer up
perfcounters with a y default in interactive kconfig sessions.

Still keep it off by default otherwise.

Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
init/Kconfig

index 823ee0a2d2a31b884cad58753b194ad4bf7004e7..3f7e60995c80714888df391cd8b91ef0f5982306 100644 (file)
@@ -940,6 +940,7 @@ menu "Performance Counters"
 
 config PERF_COUNTERS
        bool "Kernel Performance Counters"
+       default y if PROFILING
        depends on HAVE_PERF_COUNTERS
        select ANON_INODES
        help