Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 20417
b: refs/heads/master
c: 99019e9
h: refs/heads/master
i:
  20415: 85915e1
v: v3
  • Loading branch information
Jan Beulich authored and Linus Torvalds committed Feb 17, 2006
1 parent 281cc76 commit ec38b7e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 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: e4444d1a3039354c388135073786efeb64d8ef0c
refs/heads/master: 99019e919969be88e7e4042f3afa296bd55ad9ec
19 changes: 11 additions & 8 deletions trunk/arch/x86_64/kernel/nmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ static void enable_lapic_nmi_watchdog(void)
{
if (nmi_active < 0) {
nmi_watchdog = NMI_LOCAL_APIC;
touch_nmi_watchdog();
setup_apic_nmi_watchdog();
}
}
Expand Down Expand Up @@ -456,15 +457,17 @@ static DEFINE_PER_CPU(int, nmi_touch);

void touch_nmi_watchdog (void)
{
int i;
if (nmi_watchdog > 0) {
unsigned cpu;

/*
* Tell other CPUs to reset their alert counters. We cannot
* do it ourselves because the alert count increase is not
* atomic.
*/
for (i = 0; i < NR_CPUS; i++)
per_cpu(nmi_touch, i) = 1;
/*
* Tell other CPUs to reset their alert counters. We cannot
* do it ourselves because the alert count increase is not
* atomic.
*/
for_each_present_cpu (cpu)
per_cpu(nmi_touch, cpu) = 1;
}

touch_softlockup_watchdog();
}
Expand Down

0 comments on commit ec38b7e

Please sign in to comment.