aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/watchdog.c
diff options
context:
space:
mode:
authorUlrich Obergfell <uobergfe@redhat.com>2015-11-05 21:44:30 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2015-11-05 22:34:48 -0500
commit58cf690a09987c9a56933df05c0369d691d6224d (patch)
tree944677a72be83add5b43271e279ca3b01c86663f /kernel/watchdog.c
parentd283c640cee6472852b95036ddd512c2ba0c1139 (diff)
watchdog: move watchdog_disable_all_cpus() outside of ifdef
Move watchdog_disable_all_cpus() outside of the ifdef so that it is available if CONFIG_SYSCTL is not defined. This is preparation for "watchdog: implement error handling in update_watchdog_all_cpus() and callers". Signed-off-by: Ulrich Obergfell <uobergfe@redhat.com> Reviewed-by: Aaron Tomlin <atomlin@redhat.com> Acked-by: Don Zickus <dzickus@redhat.com> Cc: Ulrich Obergfell <uobergfe@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.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/kernel/watchdog.c b/kernel/watchdog.c
index 284f0e62a927..f0f8a78512a5 100644
--- a/kernel/watchdog.c
+++ b/kernel/watchdog.c
@@ -347,6 +347,9 @@ static void watchdog_interrupt_count(void)
347static int watchdog_nmi_enable(unsigned int cpu); 347static int watchdog_nmi_enable(unsigned int cpu);
348static void watchdog_nmi_disable(unsigned int cpu); 348static void watchdog_nmi_disable(unsigned int cpu);
349 349
350static int watchdog_enable_all_cpus(void);
351static void watchdog_disable_all_cpus(void);
352
350/* watchdog kicker functions */ 353/* watchdog kicker functions */
351static enum hrtimer_restart watchdog_timer_fn(struct hrtimer *hrtimer) 354static enum hrtimer_restart watchdog_timer_fn(struct hrtimer *hrtimer)
352{ 355{
@@ -756,9 +759,6 @@ static int watchdog_enable_all_cpus(void)
756 return err; 759 return err;
757} 760}
758 761
759/* prepare/enable/disable routines */
760/* sysctl functions */
761#ifdef CONFIG_SYSCTL
762static void watchdog_disable_all_cpus(void) 762static void watchdog_disable_all_cpus(void)
763{ 763{
764 if (watchdog_running) { 764 if (watchdog_running) {
@@ -767,6 +767,8 @@ static void watchdog_disable_all_cpus(void)
767 } 767 }
768} 768}
769 769
770#ifdef CONFIG_SYSCTL
771
770/* 772/*
771 * Update the run state of the lockup detectors. 773 * Update the run state of the lockup detectors.
772 */ 774 */