aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/watchdog.c
diff options
context:
space:
mode:
authorUlrich Obergfell <uobergfe@redhat.com>2015-09-04 18:45:25 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2015-09-04 19:54:41 -0400
commit999bbe49ea0118b70ddf3f5d679f51dc7a97ae55 (patch)
tree97f1547c04338233825563cc9f006642b262b498 /kernel/watchdog.c
parentd4bdd0b21c7652a8271f873cc755486b255c1bbd (diff)
watchdog: use suspend/resume interface in fixup_ht_bug()
Remove watchdog_nmi_disable_all() and watchdog_nmi_enable_all() since these functions are no longer needed. If a subsystem has a need to deactivate the watchdog temporarily, it should utilize the watchdog_suspend() and watchdog_resume() functions. [akpm@linux-foundation.org: fix build with CONFIG_LOCKUP_DETECTOR=m] Signed-off-by: Ulrich Obergfell <uobergfe@redhat.com> Reviewed-by: Aaron Tomlin <atomlin@redhat.com> Cc: Guenter Roeck <linux@roeck-us.net> Cc: Don Zickus <dzickus@redhat.com> Cc: Ulrich Obergfell <uobergfe@redhat.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Michal Hocko <mhocko@suse.cz> Cc: Stephane Eranian <eranian@google.com> Cc: Chris Metcalf <cmetcalf@ezchip.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Ingo Molnar <mingo@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/watchdog.c')
-rw-r--r--kernel/watchdog.c35
1 files changed, 0 insertions, 35 deletions
diff --git a/kernel/watchdog.c b/kernel/watchdog.c
index eb8f94b50101..69666f4b8e8f 100644
--- a/kernel/watchdog.c
+++ b/kernel/watchdog.c
@@ -615,41 +615,6 @@ static void watchdog_nmi_disable(unsigned int cpu)
615 } 615 }
616} 616}
617 617
618void watchdog_nmi_enable_all(void)
619{
620 int cpu;
621
622 mutex_lock(&watchdog_proc_mutex);
623
624 if (!(watchdog_enabled & NMI_WATCHDOG_ENABLED))
625 goto unlock;
626
627 get_online_cpus();
628 for_each_watchdog_cpu(cpu)
629 watchdog_nmi_enable(cpu);
630 put_online_cpus();
631
632unlock:
633 mutex_unlock(&watchdog_proc_mutex);
634}
635
636void watchdog_nmi_disable_all(void)
637{
638 int cpu;
639
640 mutex_lock(&watchdog_proc_mutex);
641
642 if (!watchdog_running)
643 goto unlock;
644
645 get_online_cpus();
646 for_each_watchdog_cpu(cpu)
647 watchdog_nmi_disable(cpu);
648 put_online_cpus();
649
650unlock:
651 mutex_unlock(&watchdog_proc_mutex);
652}
653#else 618#else
654static int watchdog_nmi_enable(unsigned int cpu) { return 0; } 619static int watchdog_nmi_enable(unsigned int cpu) { return 0; }
655static void watchdog_nmi_disable(unsigned int cpu) { return; } 620static void watchdog_nmi_disable(unsigned int cpu) { return; }