diff options
| -rw-r--r-- | arch/x86/Kconfig | 1 | ||||
| -rw-r--r-- | init/Kconfig | 5 | ||||
| -rw-r--r-- | lib/Kconfig.debug | 3 |
3 files changed, 7 insertions, 2 deletions
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index cbcbfdee3ee0..4f9685fa3a3a 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig | |||
| @@ -52,6 +52,7 @@ config X86 | |||
| 52 | select HAVE_KERNEL_LZO | 52 | select HAVE_KERNEL_LZO |
| 53 | select HAVE_HW_BREAKPOINT | 53 | select HAVE_HW_BREAKPOINT |
| 54 | select PERF_EVENTS | 54 | select PERF_EVENTS |
| 55 | select PERF_EVENTS_NMI | ||
| 55 | select ANON_INODES | 56 | select ANON_INODES |
| 56 | select HAVE_ARCH_KMEMCHECK | 57 | select HAVE_ARCH_KMEMCHECK |
| 57 | select HAVE_USER_RETURN_NOTIFIER | 58 | select HAVE_USER_RETURN_NOTIFIER |
diff --git a/init/Kconfig b/init/Kconfig index ada48441aff8..7331a16dd82c 100644 --- a/init/Kconfig +++ b/init/Kconfig | |||
| @@ -946,6 +946,11 @@ config PERF_USE_VMALLOC | |||
| 946 | help | 946 | help |
| 947 | See tools/perf/design.txt for details | 947 | See tools/perf/design.txt for details |
| 948 | 948 | ||
| 949 | config PERF_EVENTS_NMI | ||
| 950 | bool | ||
| 951 | help | ||
| 952 | Arch has support for nmi_watchdog | ||
| 953 | |||
| 949 | menu "Kernel Performance Events And Counters" | 954 | menu "Kernel Performance Events And Counters" |
| 950 | 955 | ||
| 951 | config PERF_EVENTS | 956 | config PERF_EVENTS |
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index acef88239e15..01a4d85ee746 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug | |||
| @@ -172,8 +172,7 @@ config DETECT_SOFTLOCKUP | |||
| 172 | 172 | ||
| 173 | config NMI_WATCHDOG | 173 | config NMI_WATCHDOG |
| 174 | bool "Detect Hard Lockups with an NMI Watchdog" | 174 | bool "Detect Hard Lockups with an NMI Watchdog" |
| 175 | depends on DEBUG_KERNEL && PERF_EVENTS | 175 | depends on DEBUG_KERNEL && PERF_EVENTS && PERF_EVENTS_NMI |
| 176 | depends on X86 | ||
| 177 | default y | 176 | default y |
| 178 | help | 177 | help |
| 179 | Say Y here to enable the kernel to use the NMI as a watchdog | 178 | Say Y here to enable the kernel to use the NMI as a watchdog |
