]> git.baikalelectronics.ru Git - kernel.git/commit
swiotlb: move global variables into a new io_tlb_mem structure
authorClaire Chang <tientzu@chromium.org>
Thu, 18 Mar 2021 16:14:22 +0000 (17:14 +0100)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 19 Mar 2021 04:58:25 +0000 (04:58 +0000)
commit47768eb702f18ff0d2fff2363c43c23aa0a9134f
tree7b2ef5d861b29f300ee54abe48a4a31d0a559e6a
parentb31833c109196a9550db7db707df3dc69b6becc5
swiotlb: move global variables into a new io_tlb_mem structure

Added a new struct, io_tlb_mem, as the IO TLB memory pool descriptor and
moved relevant global variables into that struct.
This will be useful later to allow for restricted DMA pool.

Signed-off-by: Claire Chang <tientzu@chromium.org>
[hch: rebased]
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/swiotlb-xen.c
include/linux/swiotlb.h
kernel/dma/swiotlb.c