Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 210353
b: refs/heads/master
c: 68d3f1d
h: refs/heads/master
i:
  210351: 0de7f98
v: v3
  • Loading branch information
Don Zickus authored and Ingo Molnar committed Sep 1, 2010
1 parent ffd3bb9 commit 76b8bf5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3aaba20f26f58843e8f20611e5c0b1c06954310f
refs/heads/master: 68d3f1d810500e8b975bdf0b20dd83d060076b4b
17 changes: 12 additions & 5 deletions trunk/kernel/watchdog.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ static void __touch_watchdog(void)

void touch_softlockup_watchdog(void)
{
__get_cpu_var(watchdog_touch_ts) = 0;
__raw_get_cpu_var(watchdog_touch_ts) = 0;
}
EXPORT_SYMBOL(touch_softlockup_watchdog);

Expand All @@ -142,7 +142,14 @@ void touch_all_softlockup_watchdogs(void)
#ifdef CONFIG_HARDLOCKUP_DETECTOR
void touch_nmi_watchdog(void)
{
__get_cpu_var(watchdog_nmi_touch) = true;
if (watchdog_enabled) {
unsigned cpu;

for_each_present_cpu(cpu) {
if (per_cpu(watchdog_nmi_touch, cpu) != true)
per_cpu(watchdog_nmi_touch, cpu) = true;
}
}
touch_softlockup_watchdog();
}
EXPORT_SYMBOL(touch_nmi_watchdog);
Expand Down Expand Up @@ -433,6 +440,9 @@ static int watchdog_enable(int cpu)
wake_up_process(p);
}

/* if any cpu succeeds, watchdog is considered enabled for the system */
watchdog_enabled = 1;

return 0;
}

Expand All @@ -455,9 +465,6 @@ static void watchdog_disable(int cpu)
per_cpu(softlockup_watchdog, cpu) = NULL;
kthread_stop(p);
}

/* if any cpu succeeds, watchdog is considered enabled for the system */
watchdog_enabled = 1;
}

static void watchdog_enable_all_cpus(void)
Expand Down

0 comments on commit 76b8bf5

Please sign in to comment.