]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/pci/intr_remapping.c
x86, dmar: use atomic allocations for QI and Intr-remapping init
[net-next-2.6.git] / drivers / pci / intr_remapping.c
index f7ecd85e2104366c94e1accbb0bbc9185f1fa013..bc5b6976f9184e05708a5ff5fc95fc0f36e6d0c8 100644 (file)
@@ -447,12 +447,12 @@ static int setup_intr_remapping(struct intel_iommu *iommu, int mode)
        struct page *pages;
 
        ir_table = iommu->ir_table = kzalloc(sizeof(struct ir_table),
-                                            GFP_KERNEL);
+                                            GFP_ATOMIC);
 
        if (!iommu->ir_table)
                return -ENOMEM;
 
-       pages = alloc_pages(GFP_KERNEL | __GFP_ZERO, INTR_REMAP_PAGE_ORDER);
+       pages = alloc_pages(GFP_ATOMIC | __GFP_ZERO, INTR_REMAP_PAGE_ORDER);
 
        if (!pages) {
                printk(KERN_ERR "failed to allocate pages of order %d\n",