瀏覽代碼

iommu=pt is a valid early param

This avoids a "Malformed early option 'iommu'" warning on boot when 
trying to use pass-through mode.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Alex Williamson 16 年之前
父節點
當前提交
cfc65dd579
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. 1 3
      arch/x86/kernel/pci-dma.c

+ 1 - 3
arch/x86/kernel/pci-dma.c

@@ -212,10 +212,8 @@ static __init int iommu_setup(char *p)
 		if (!strncmp(p, "soft", 4))
 		if (!strncmp(p, "soft", 4))
 			swiotlb = 1;
 			swiotlb = 1;
 #endif
 #endif
-		if (!strncmp(p, "pt", 2)) {
+		if (!strncmp(p, "pt", 2))
 			iommu_pass_through = 1;
 			iommu_pass_through = 1;
-			return 1;
-		}
 
 
 		gart_parse_options(p);
 		gart_parse_options(p);