diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2009-11-14 06:46:36 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-11-15 03:03:09 -0500 |
commit | a3b28ee1090072092e2be043c24df94230e725b2 (patch) | |
tree | 65bae068efde74fffff6efb15e7b8a87a89fc2f2 /arch/x86/kernel/pci-dma.c | |
parent | b18485e7acfe1a634615d1c628ef644c0d58d472 (diff) |
x86: Set dma_ops to nommu_dma_ops by default
We set dma_ops to nommu_dma_ops at two different places for
x86_32 and x86_64. This unifies them by setting dma_ops to
nommu_dma_ops by default.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
LKML-Reference: <1258199198-16657-2-git-send-email-fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/pci-dma.c')
-rw-r--r-- | arch/x86/kernel/pci-dma.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/x86/kernel/pci-dma.c b/arch/x86/kernel/pci-dma.c index 0b11bf18f540..f170b5364b41 100644 --- a/arch/x86/kernel/pci-dma.c +++ b/arch/x86/kernel/pci-dma.c | |||
@@ -15,7 +15,7 @@ | |||
15 | 15 | ||
16 | static int forbid_dac __read_mostly; | 16 | static int forbid_dac __read_mostly; |
17 | 17 | ||
18 | struct dma_map_ops *dma_ops; | 18 | struct dma_map_ops *dma_ops = &nommu_dma_ops; |
19 | EXPORT_SYMBOL(dma_ops); | 19 | EXPORT_SYMBOL(dma_ops); |
20 | 20 | ||
21 | static int iommu_sac_force __read_mostly; | 21 | static int iommu_sac_force __read_mostly; |
@@ -128,8 +128,6 @@ void __init pci_iommu_alloc(void) | |||
128 | #ifdef CONFIG_X86_64 | 128 | #ifdef CONFIG_X86_64 |
129 | /* free the range so iommu could get some range less than 4G */ | 129 | /* free the range so iommu could get some range less than 4G */ |
130 | dma32_free_bootmem(); | 130 | dma32_free_bootmem(); |
131 | #else | ||
132 | dma_ops = &nommu_dma_ops; | ||
133 | #endif | 131 | #endif |
134 | if (pci_swiotlb_init()) | 132 | if (pci_swiotlb_init()) |
135 | return; | 133 | return; |