kernel: enable perf events when enabling profiling, fixes oprofile on arm
[openwrt/staging/mkresin.git] / Config.in
index 36ca48881f5573e966167f544c1bf952cc67f839..e5b3346fe20a90d6b3855c94dadce824a141fb53 100644 (file)
--- a/Config.in
+++ b/Config.in
@@ -193,9 +193,14 @@ menu "Global build settings"
                  debugging files into. Enable this option to be able to read and
                  write to these files.
 
+       config KERNEL_PERF_EVENTS
+               bool
+               default n
+
        config KERNEL_PROFILING
                bool "Compile the kernel with profiling enabled"
                default n
+               select KERNEL_PERF_EVENTS
                help
                  Enable the extended profiling support mechanisms used by profilers such
                  as OProfile.