diff options
author | Christoph Hellwig <hch@lst.de> | 2022-02-14 13:12:59 +0300 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2022-04-18 08:21:12 +0300 |
commit | 742519538e6b07250c8085bbff4bd358bc03bf16 (patch) | |
tree | 4d215f3b5c90a35820b045efb36e572a56890ce6 /include/linux/swiotlb.h | |
parent | 8ba2ed1be90fc210126f68186564707478552c95 (diff) | |
download | linux-742519538e6b07250c8085bbff4bd358bc03bf16.tar.xz |
swiotlb: pass a gfp_mask argument to swiotlb_init_late
Let the caller chose a zone to allocate from. This will be used
later on by the xen-swiotlb initialization on arm.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tested-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Diffstat (limited to 'include/linux/swiotlb.h')
-rw-r--r-- | include/linux/swiotlb.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/swiotlb.h b/include/linux/swiotlb.h index eabdd8998702..ee655f2e4d28 100644 --- a/include/linux/swiotlb.h +++ b/include/linux/swiotlb.h @@ -37,7 +37,7 @@ struct scatterlist; int swiotlb_init_with_tbl(char *tlb, unsigned long nslabs, unsigned int flags); unsigned long swiotlb_size_or_default(void); extern int swiotlb_late_init_with_tbl(char *tlb, unsigned long nslabs); -int swiotlb_init_late(size_t size); +int swiotlb_init_late(size_t size, gfp_t gfp_mask); extern void __init swiotlb_update_mem_attributes(void); phys_addr_t swiotlb_tbl_map_single(struct device *hwdev, phys_addr_t phys, |