Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 120755
b: refs/heads/master
c: 7d5a78c
h: refs/heads/master
i:
  120753: fc19c30
  120751: 3138170
v: v3
  • Loading branch information
Aristeu Rozanski authored and Ingo Molnar committed Oct 27, 2008
1 parent 88c618b commit a061d7a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 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: 6f290b4e016d6c61511542cf6d9ebdef1965978e
refs/heads/master: 7d5a78cd98c3a5eb83bd6a061c5ea6ef1e9b8fcb
18 changes: 11 additions & 7 deletions trunk/arch/x86/kernel/nmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,11 @@ static void report_broken_nmi(int cpu, int *prev_nmi_count)
atomic_dec(&nmi_active);
}

static void __acpi_nmi_disable(void *__unused)
{
apic_write(APIC_LVT0, APIC_DM_NMI | APIC_LVT_MASKED);
}

int __init check_nmi_watchdog(void)
{
unsigned int *prev_nmi_count;
Expand Down Expand Up @@ -179,8 +184,12 @@ int __init check_nmi_watchdog(void)
kfree(prev_nmi_count);
return 0;
error:
if (nmi_watchdog == NMI_IO_APIC && !timer_through_8259)
disable_8259A_irq(0);
if (nmi_watchdog == NMI_IO_APIC) {
if (!timer_through_8259)
disable_8259A_irq(0);
on_each_cpu(__acpi_nmi_disable, NULL, 1);
}

#ifdef CONFIG_X86_32
timer_ack = 0;
#endif
Expand Down Expand Up @@ -285,11 +294,6 @@ void acpi_nmi_enable(void)
on_each_cpu(__acpi_nmi_enable, NULL, 1);
}

static void __acpi_nmi_disable(void *__unused)
{
apic_write(APIC_LVT0, APIC_DM_NMI | APIC_LVT_MASKED);
}

/*
* Disable timer based NMIs on all CPUs:
*/
Expand Down

0 comments on commit a061d7a

Please sign in to comment.