From: Ingo Molnar <mingo@elte.hu>
Date: Mon, 29 Jun 2009 08:40:20 +0000 (+0200)
Subject: perf_counter: Set the CONFIG_PERF_COUNTERS default to y if CONFIG_PROFILING=y
X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f26542600e605482a1231c44ddb2966d69bd09b0;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git

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: Ingo Molnar <mingo@elte.hu>
---

diff --git a/init/Kconfig b/init/Kconfig
index 823ee0a2d2a3..3f7e60995c80 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -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