watchdog/core: Put softlockup_threads_initialized under ifdef guard
authorThomas Gleixner <tglx@linutronix.de>
Mon, 2 Oct 2017 18:59:09 +0000 (20:59 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 4 Oct 2017 09:30:50 +0000 (11:30 +0200)
The variable is unused when the softlockup detector is disabled in Kconfig.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/watchdog.c

index d241bd99cee1d54dae82587c44fbe72c8f4c6bd8..6bcb854909c0b6f1563469ae3517fa1f89c43268 100644 (file)
@@ -47,7 +47,6 @@ int __read_mostly watchdog_thresh = 10;
 int __read_mostly nmi_watchdog_available;
 
 struct cpumask watchdog_allowed_mask __read_mostly;
-static bool softlockup_threads_initialized __read_mostly;
 
 struct cpumask watchdog_cpumask __read_mostly;
 unsigned long *watchdog_cpumask_bits = cpumask_bits(&watchdog_cpumask);
@@ -168,6 +167,7 @@ static void lockup_detector_update_enable(void)
 unsigned int __read_mostly softlockup_panic =
                        CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC_VALUE;
 
+static bool softlockup_threads_initialized __read_mostly;
 static u64 __read_mostly sample_period;
 
 static DEFINE_PER_CPU(unsigned long, watchdog_touch_ts);