Commit b83ebf56 authored by Robert P. J. Day's avatar Robert P. J. Day Committed by David S. Miller

[SPARC64]: Use shorter "get_zeroed_page" call.

Signed-off-by: default avatarRobert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b3dd5b82
...@@ -200,12 +200,11 @@ int iommu_table_init(struct iommu *iommu, int tsbsize, ...@@ -200,12 +200,11 @@ int iommu_table_init(struct iommu *iommu, int tsbsize,
/* Allocate and initialize the dummy page which we /* Allocate and initialize the dummy page which we
* set inactive IO PTEs to point to. * set inactive IO PTEs to point to.
*/ */
iommu->dummy_page = __get_free_pages(GFP_KERNEL, 0); iommu->dummy_page = get_zeroed_page(GFP_KERNEL);
if (!iommu->dummy_page) { if (!iommu->dummy_page) {
printk(KERN_ERR "IOMMU: Error, gfp(dummy_page) failed.\n"); printk(KERN_ERR "IOMMU: Error, gfp(dummy_page) failed.\n");
goto out_free_map; goto out_free_map;
} }
memset((void *)iommu->dummy_page, 0, PAGE_SIZE);
iommu->dummy_page_pa = (unsigned long) __pa(iommu->dummy_page); iommu->dummy_page_pa = (unsigned long) __pa(iommu->dummy_page);
/* Now allocate and setup the IOMMU page table itself. */ /* Now allocate and setup the IOMMU page table itself. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment