Skip to content

Commit 92e5aae

Browse files
npiggintorvalds
authored andcommitted
kernel/watchdog: fix Kconfig constraints for perf hardlockup watchdog
Commit 05a4a95 ("kernel/watchdog: split up config options") lost the perf-based hardlockup detector's dependency on PERF_EVENTS, which can result in broken builds with some powerpc configurations. Restore the dependency. Add it in for x86 too, despite x86 always selecting PERF_EVENTS it seems reasonable to make the dependency explicit. Link: http://lkml.kernel.org/r/20170810114452.6673-1-npiggin@gmail.com Fixes: 05a4a95 ("kernel/watchdog: split up config options") Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Acked-by: Don Zickus <dzickus@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 739f79f commit 92e5aae

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

arch/powerpc/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ config PPC
199199
select HAVE_OPTPROBES if PPC64
200200
select HAVE_PERF_EVENTS
201201
select HAVE_PERF_EVENTS_NMI if PPC64
202-
select HAVE_HARDLOCKUP_DETECTOR_PERF if HAVE_PERF_EVENTS_NMI && !HAVE_HARDLOCKUP_DETECTOR_ARCH
202+
select HAVE_HARDLOCKUP_DETECTOR_PERF if PERF_EVENTS && HAVE_PERF_EVENTS_NMI && !HAVE_HARDLOCKUP_DETECTOR_ARCH
203203
select HAVE_PERF_REGS
204204
select HAVE_PERF_USER_STACK_DUMP
205205
select HAVE_RCU_TABLE_FREE if SMP

arch/x86/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ config X86
163163
select HAVE_PCSPKR_PLATFORM
164164
select HAVE_PERF_EVENTS
165165
select HAVE_PERF_EVENTS_NMI
166-
select HAVE_HARDLOCKUP_DETECTOR_PERF if HAVE_PERF_EVENTS_NMI
166+
select HAVE_HARDLOCKUP_DETECTOR_PERF if PERF_EVENTS && HAVE_PERF_EVENTS_NMI
167167
select HAVE_PERF_REGS
168168
select HAVE_PERF_USER_STACK_DUMP
169169
select HAVE_REGS_AND_STACK_ACCESS_API

0 commit comments

Comments
 (0)