kernel/watchdog.c: move hardlockup detector to separate file
PATCH 49/114 kernel/watchdog.c: move hardlockup detector to separate file
From: Babu Moger <[email protected]>
Subject: kernel/watchdog.c: move hardlockup detector to separate file
Separate hardlockup code from watchdog.c and move it to watchdog_hld.c. It is mostly straight forward. Remove everything inside CONFIG_HARDLOCKUP_DETECTORS. This code will go to file watchdog_hld.c. Also update the makefile accordigly.
Signed-off-by Babu Moger <[email protected]>
Acked-by Don Zickus <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Jiri Kosina <[email protected]>
Cc Andi Kleen <[email protected]>
Cc Yaowei Bai <[email protected]>
Cc Aaron Tomlin <[email protected]>
Cc Ulrich Obergfell <[email protected]>
Cc Tejun Heo <[email protected]>
Cc Hidehiro Kawai <[email protected]>
Cc Josh Hunt <[email protected]>
Cc "David S. Miller" <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
kernel/Makefile | 1 kernel/watchdog.c | 241 +--------------------------------------- kernel/watchdog_hld.c | 227 +++++++++++++++++++++++++++++++++++++ 3 files changed, 239 insertions(+), 230 deletions(-)
kernel/Makefile renamed from kernel/Makefile~watchdog-move-hardlockup-detector-to-separate-file +1 -0
@@ -84,6 +84,7 @@ obj-$(CONFIG_KPROBES) += kprobes.o obj-$(CONFIG_KGDB) += debug/ obj-$(CONFIG_DETECT_HUNG_TASK) += hung_task.o obj-$(CONFIG_LOCKUP_DETECTOR) += watchdog.o +obj-$(CONFIG_HARDLOCKUP_DETECTOR) += watchdog_hld.o obj-$(CONFIG_SECCOMP) += seccomp.o obj-$(CONFIG_RELAY) += relay.o obj-$(CONFIG_SYSCTL) += utsname_sysctl.o
kernel/watchdog.c renamed from kernel/watchdog.c~watchdog-move-hardlockup-detector-to-separate-file +11 -230
291 lines not on this page · raw message
kernel/watchdog_hld.c new file +227 -0
227 lines not on this page · raw message
_