x86, ioapic: Fix potential resume deadlock
[linux-flexiantxendom0-natty.git] / arch / x86 / kernel / apic / io_apic.c
index ca9e2a3..e437778 100644 (file)
@@ -615,14 +615,14 @@ struct IO_APIC_route_entry **alloc_ioapic_entries(void)
        struct IO_APIC_route_entry **ioapic_entries;
 
        ioapic_entries = kzalloc(sizeof(*ioapic_entries) * nr_ioapics,
-                               GFP_KERNEL);
+                               GFP_ATOMIC);
        if (!ioapic_entries)
                return 0;
 
        for (apic = 0; apic < nr_ioapics; apic++) {
                ioapic_entries[apic] =
                        kzalloc(sizeof(struct IO_APIC_route_entry) *
-                               nr_ioapic_registers[apic], GFP_KERNEL);
+                               nr_ioapic_registers[apic], GFP_ATOMIC);
                if (!ioapic_entries[apic])
                        goto nomem;
        }