swiotlb: Add is_swiotlb_active() function
authorJoerg Roedel <jroedel@suse.de>
Thu, 7 Feb 2019 11:59:14 +0000 (12:59 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 6 Mar 2019 16:19:06 +0000 (11:19 -0500)
commit492366f7b4237257ef50ca9c431a6a0d50225aca
tree7d867810eb10e65b5b5de8d1d569a89351127c7b
parentabe420bfae528c92bd8cc5ecb62dc95672b1fd6f
swiotlb: Add is_swiotlb_active() function

This function will be used from dma_direct code to determine
the maximum segment size of a dma mapping.

Cc: stable@vger.kernel.org
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
include/linux/swiotlb.h
kernel/dma/swiotlb.c