diff options
author | Konrad Rzeszutek Wilk <[email protected]> | 2010-08-26 13:57:59 -0400 |
---|---|---|
committer | H. Peter Anvin <[email protected]> | 2010-08-26 15:13:29 -0700 |
commit | efa631c26d3bb1162b8f95008801db602217f52b (patch) | |
tree | bc2b88fa3a08be9c96b663f37ed425a7b3be15f5 /net/unix/sysctl_net_unix.c | |
parent | 5bef80a4b826b9cee1c6aec7ecc371ec395260cc (diff) |
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 <[email protected]>
Signed-off-by: Konrad Rzeszutek Wilk <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: H. Peter Anvin <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions