Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 60777
b: refs/heads/master
c: 567f3e4
h: refs/heads/master
i:
  60775: 556d1aa
v: v3
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed Jul 17, 2007
1 parent 9ad41d0 commit 42261de
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 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: f2890255b0ade497893d1e5e99f519b5c1d50f7d
refs/heads/master: 567f3e422a9a155d7c7643148efb5bf959065d34
8 changes: 5 additions & 3 deletions trunk/arch/x86_64/kernel/nmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ static DEFINE_PER_CPU(unsigned, last_irq_sum);
static DEFINE_PER_CPU(local_t, alert_counter);
static DEFINE_PER_CPU(int, nmi_touch);

void touch_nmi_watchdog (void)
void touch_nmi_watchdog(void)
{
if (nmi_watchdog > 0) {
unsigned cpu;
Expand All @@ -306,8 +306,10 @@ void touch_nmi_watchdog (void)
* do it ourselves because the alert count increase is not
* atomic.
*/
for_each_present_cpu (cpu)
per_cpu(nmi_touch, cpu) = 1;
for_each_present_cpu(cpu) {
if (per_cpu(nmi_touch, cpu) != 1)
per_cpu(nmi_touch, cpu) = 1;
}
}

touch_softlockup_watchdog();
Expand Down

0 comments on commit 42261de

Please sign in to comment.