aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/iommu.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/kernel/iommu.c')
-rw-r--r--arch/powerpc/kernel/iommu.c19
1 files changed, 1 insertions, 18 deletions
diff --git a/arch/powerpc/kernel/iommu.c b/arch/powerpc/kernel/iommu.c
index 5547ae6e6b0b..d5839179ec77 100644
--- a/arch/powerpc/kernel/iommu.c
+++ b/arch/powerpc/kernel/iommu.c
@@ -42,26 +42,10 @@
42 42
43#define DBG(...) 43#define DBG(...)
44 44
45#ifdef CONFIG_IOMMU_VMERGE 45static int novmerge;
46static int novmerge = 0;
47#else
48static int novmerge = 1;
49#endif
50
51static int protect4gb = 1;
52 46
53static void __iommu_free(struct iommu_table *, dma_addr_t, unsigned int); 47static void __iommu_free(struct iommu_table *, dma_addr_t, unsigned int);
54 48
55static int __init setup_protect4gb(char *str)
56{
57 if (strcmp(str, "on") == 0)
58 protect4gb = 1;
59 else if (strcmp(str, "off") == 0)
60 protect4gb = 0;
61
62 return 1;
63}
64
65static int __init setup_iommu(char *str) 49static int __init setup_iommu(char *str)
66{ 50{
67 if (!strcmp(str, "novmerge")) 51 if (!strcmp(str, "novmerge"))
@@ -71,7 +55,6 @@ static int __init setup_iommu(char *str)
71 return 1; 55 return 1;
72} 56}
73 57
74__setup("protect4gb=", setup_protect4gb);
75__setup("iommu=", setup_iommu); 58__setup("iommu=", setup_iommu);
76 59
77static unsigned long iommu_range_alloc(struct device *dev, 60static unsigned long iommu_range_alloc(struct device *dev,