From: Konrad Rzeszutek Wilk Date: Thu, 26 Aug 2010 17:57:59 +0000 (-0400) Subject: x86, swiotlb: Simplify SWIOTLB pci_swiotlb_detect routine. X-Git-Tag: v2.6.37-rc1~190^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=efa631c26d3bb1162b8f95008801db602217f52b;p=pandora-kernel.git x86, swiotlb: Simplify SWIOTLB pci_swiotlb_detect routine. In 'pci_swiotlb_detect' we used to do two different things: a). If user provided 'iommu=soft' or 'swiotlb=force' we would set swiotlb=1 and return 1 (and forcing pci-dma.c to call pci_swiotlb_init() immediately). b). If 4GB or more would be detected and if user did not specify iommu=off, we would set 'swiotlb=1' and return whatever 'a)' figured out. We simplify this by splitting a) and b) in two different routines. CC: Fujita Tomonori Signed-off-by: Konrad Rzeszutek Wilk LKML-Reference: <1282845485-8991-5-git-send-email-konrad.wilk@oracle.com> Signed-off-by: H. Peter Anvin --- Reading git-diff-tree failed