diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-19 10:53:28 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-19 10:53:28 -0500 |
commit | b69409279c4c960fcd1575bcf80f2a0ca414ca93 (patch) | |
tree | da8105a20ccc08caa033a9b40da7111e1de902d7 /arch/sparc64/kernel/iommu.c | |
parent | 07ce198a1eb3431d04a6d59ea9fb7b71f21e33b1 (diff) | |
parent | f6d091e05199e67ba79c3ea29faa5c3b51d5daf4 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6:
[SPARC64]: Add regs_return_value().
[SPARC64]: Kill pcic_present().
[SPARC]: Kill 'prom_palette'.
[ATYFB]: Kill 'prom_palette' sparc code.
[SPARC64]: Kill 'prom_keyboard'.
[SPARC]: Kill extern decl of 'panic_setup'.
[SPARC64]: Delete 'boot_flags'.
[SPARC64]: Kill unused function 'kernel_enter_debugger'.
[SPARC64] arch/sparc64/kernel/unaligned.c: Use time_* macros
[SPARC64]: Always register a PROM based early console.
[SPARC64]: Update defconfig.
[SPARC64]: Add -mtune=ultrasparc3 if possible.
[SPARC64]: Remove Makefile code for ancient gcc and binutils.
[SPARC64]: Remove DEBUG_BOOTMEM.
[SPARC64]: Use shorter "get_zeroed_page" call.
[SPARC]: Use shorter form of "get_zeroed_page".
[SPARC]: video/cg14.c and video/sbuslib.c build fixes
Diffstat (limited to 'arch/sparc64/kernel/iommu.c')
-rw-r--r-- | arch/sparc64/kernel/iommu.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/sparc64/kernel/iommu.c b/arch/sparc64/kernel/iommu.c index d3276ebcfb47..0e347ff812a3 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, | |||
200 | /* Allocate and initialize the dummy page which we | 200 | /* Allocate and initialize the dummy page which we |
201 | * set inactive IO PTEs to point to. | 201 | * set inactive IO PTEs to point to. |
202 | */ | 202 | */ |
203 | iommu->dummy_page = __get_free_pages(GFP_KERNEL, 0); | 203 | iommu->dummy_page = get_zeroed_page(GFP_KERNEL); |
204 | if (!iommu->dummy_page) { | 204 | if (!iommu->dummy_page) { |
205 | printk(KERN_ERR "IOMMU: Error, gfp(dummy_page) failed.\n"); | 205 | printk(KERN_ERR "IOMMU: Error, gfp(dummy_page) failed.\n"); |
206 | goto out_free_map; | 206 | goto out_free_map; |
207 | } | 207 | } |
208 | memset((void *)iommu->dummy_page, 0, PAGE_SIZE); | ||
209 | iommu->dummy_page_pa = (unsigned long) __pa(iommu->dummy_page); | 208 | iommu->dummy_page_pa = (unsigned long) __pa(iommu->dummy_page); |
210 | 209 | ||
211 | /* Now allocate and setup the IOMMU page table itself. */ | 210 | /* Now allocate and setup the IOMMU page table itself. */ |