kernel: enable perf events when enabling profiling, fixes oprofile on arm
authorFelix Fietkau <nbd@openwrt.org>
Thu, 20 Sep 2012 20:27:14 +0000 (20:27 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 20 Sep 2012 20:27:14 +0000 (20:27 +0000)
SVN-Revision: 33497

Config.in
target/linux/generic/config-3.3

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.
 
                  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
        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.
                help
                  Enable the extended profiling support mechanisms used by profilers such
                  as OProfile.
index a2c90533caff898c23c06e65d0917c0ee0cc251f..31f3442edf32049167ca82160df641667fbf5f83 100644 (file)
@@ -922,6 +922,7 @@ CONFIG_HOTPLUG=y
 # CONFIG_HWMON_DEBUG_CHIP is not set
 # CONFIG_HWMON_VID is not set
 # CONFIG_HWSPINLOCK_OMAP is not set
 # CONFIG_HWMON_DEBUG_CHIP is not set
 # CONFIG_HWMON_VID is not set
 # CONFIG_HWSPINLOCK_OMAP is not set
+CONFIG_HW_PERF_EVENTS=y
 # CONFIG_HW_RANDOM is not set
 # CONFIG_HW_RANDOM_AMD is not set
 # CONFIG_HW_RANDOM_GEODE is not set
 # CONFIG_HW_RANDOM is not set
 # CONFIG_HW_RANDOM_AMD is not set
 # CONFIG_HW_RANDOM_GEODE is not set