Skip to contentSkip to conversation

kernel/watchdog.c: move hardlockup detector to separate file

PATCH New [email protected] 1 participant 1 message Dec 14, 2016

lore
Share & tools
lore
#0 lore raw

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.

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]>

---

 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
diff -puN kernel/Makefile~watchdog-move-hardlockup-detector-to-separate-file kernel/Makefile
@@ -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

_