Commit f2654260 authored by Ingo Molnar's avatar Ingo Molnar

perf_counter: Set the CONFIG_PERF_COUNTERS default to y if CONFIG_PROFILING=y

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: default avatarIngo Molnar <mingo@elte.hu>
parent 7e030655
...@@ -940,6 +940,7 @@ menu "Performance Counters" ...@@ -940,6 +940,7 @@ menu "Performance Counters"
config PERF_COUNTERS config PERF_COUNTERS
bool "Kernel Performance Counters" bool "Kernel Performance Counters"
default y if PROFILING
depends on HAVE_PERF_COUNTERS depends on HAVE_PERF_COUNTERS
select ANON_INODES select ANON_INODES
help help
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment