summaryrefslogtreecommitdiffstats
path: root/arch/sparc64/kernel/iommu.c
diff options
context:
space:
mode:
authorRobert P. J. Day <rpjday@crashcourse.ca>2008-02-12 22:09:29 -0800
committerDavid S. Miller <davem@davemloft.net>2008-02-12 22:09:29 -0800
commitb83ebf566b64d3702c6b50dbee2052623cd55ce5 (patch)
tree09971ffc25bed424a7dcb178e086623abbfe14b3 /arch/sparc64/kernel/iommu.c
parentb3dd5b82560eef53a537e409f50261d0b33c75ce (diff)
downloadop-kernel-dev-b83ebf566b64d3702c6b50dbee2052623cd55ce5.zip
op-kernel-dev-b83ebf566b64d3702c6b50dbee2052623cd55ce5.tar.gz
[SPARC64]: Use shorter "get_zeroed_page" call.
Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64/kernel/iommu.c')
-rw-r--r--arch/sparc64/kernel/iommu.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/sparc64/kernel/iommu.c b/arch/sparc64/kernel/iommu.c
index d3276ebc..0e347ff 100644
--- a/arch/sparc64/kernel/iommu.c
+++ b/arch/sparc64/kernel/iommu.c
@@ -200,12 +200,11 @@ int iommu_table_init(struct iommu *iommu, int tsbsize,
/* Allocate and initialize the dummy page which we
* 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) {
printk(KERN_ERR "IOMMU: Error, gfp(dummy_page) failed.\n");
goto out_free_map;
}
- memset((void *)iommu->dummy_page, 0, PAGE_SIZE);
iommu->dummy_page_pa = (unsigned long) __pa(iommu->dummy_page);
/* Now allocate and setup the IOMMU page table itself. */
OpenPOWER on IntegriCloud