summaryrefslogtreecommitdiffstats
path: root/drivers/pci/intr_remapping.c
diff options
context:
space:
mode:
authorSuresh Siddha <suresh.b.siddha@intel.com>2009-10-02 11:01:23 -0700
committerDavid Woodhouse <David.Woodhouse@intel.com>2009-10-05 07:55:29 +0100
commit824cd75bf30cfc52c4b468f3cabf6932fd012654 (patch)
treecfcc258801494debb2c76ecc850cade2b0c633b2 /drivers/pci/intr_remapping.c
parent751cafe3aeceb9ff887c97237f6daaf596c9e547 (diff)
downloadop-kernel-dev-824cd75bf30cfc52c4b468f3cabf6932fd012654.zip
op-kernel-dev-824cd75bf30cfc52c4b468f3cabf6932fd012654.tar.gz
intr_remap: Allocate intr-remapping table using numa locality info
Allocate intr-remapping table using numa locality info. On platforms having remapping hardware units span different nodes, this enables optimized intr-remapping table entry access by remapping hardware. Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/pci/intr_remapping.c')
-rw-r--r--drivers/pci/intr_remapping.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/pci/intr_remapping.c b/drivers/pci/intr_remapping.c
index 0ed78a7..fccf0e2 100644
--- a/drivers/pci/intr_remapping.c
+++ b/drivers/pci/intr_remapping.c
@@ -548,7 +548,8 @@ static int setup_intr_remapping(struct intel_iommu *iommu, int mode)
if (!iommu->ir_table)
return -ENOMEM;
- pages = alloc_pages(GFP_ATOMIC | __GFP_ZERO, INTR_REMAP_PAGE_ORDER);
+ pages = alloc_pages_node(iommu->node, GFP_ATOMIC | __GFP_ZERO,
+ INTR_REMAP_PAGE_ORDER);
if (!pages) {
printk(KERN_ERR "failed to allocate pages of order %d\n",
OpenPOWER on IntegriCloud