|
@@ -31,13 +31,13 @@ int watchdog_enabled;
|
|
|
int __read_mostly softlockup_thresh = 60;
|
|
|
|
|
|
static DEFINE_PER_CPU(unsigned long, watchdog_touch_ts);
|
|
|
-static DEFINE_PER_CPU(bool, watchdog_nmi_touch);
|
|
|
static DEFINE_PER_CPU(struct task_struct *, softlockup_watchdog);
|
|
|
static DEFINE_PER_CPU(struct hrtimer, watchdog_hrtimer);
|
|
|
static DEFINE_PER_CPU(bool, softlockup_touch_sync);
|
|
|
-static DEFINE_PER_CPU(bool, hard_watchdog_warn);
|
|
|
static DEFINE_PER_CPU(bool, soft_watchdog_warn);
|
|
|
#ifdef CONFIG_HARDLOCKUP_DETECTOR
|
|
|
+static DEFINE_PER_CPU(bool, hard_watchdog_warn);
|
|
|
+static DEFINE_PER_CPU(bool, watchdog_nmi_touch);
|
|
|
static DEFINE_PER_CPU(unsigned long, hrtimer_interrupts);
|
|
|
static DEFINE_PER_CPU(unsigned long, hrtimer_interrupts_saved);
|
|
|
static DEFINE_PER_CPU(struct perf_event *, watchdog_ev);
|
|
@@ -139,6 +139,7 @@ void touch_all_softlockup_watchdogs(void)
|
|
|
per_cpu(watchdog_touch_ts, cpu) = 0;
|
|
|
}
|
|
|
|
|
|
+#ifdef CONFIG_HARDLOCKUP_DETECTOR
|
|
|
void touch_nmi_watchdog(void)
|
|
|
{
|
|
|
__get_cpu_var(watchdog_nmi_touch) = true;
|
|
@@ -146,6 +147,8 @@ void touch_nmi_watchdog(void)
|
|
|
}
|
|
|
EXPORT_SYMBOL(touch_nmi_watchdog);
|
|
|
|
|
|
+#endif
|
|
|
+
|
|
|
void touch_softlockup_watchdog_sync(void)
|
|
|
{
|
|
|
__raw_get_cpu_var(softlockup_touch_sync) = true;
|