Skip to content

Commit

Permalink
swiotlb-xen: drop DEFAULT_NSLABS
Browse files Browse the repository at this point in the history
It was introduced by 4035b43 ("xen-swiotlb: remove xen_set_nslabs")
and then not removed by 2d29960 ("swiotlb: dynamically allocate
io_tlb_default_mem").

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>

Link: https://lore.kernel.org/r/15259326-209a-1d11-338c-5018dc38abe8@suse.com
Signed-off-by: Juergen Gross <jgross@suse.com>
  • Loading branch information
Jan Beulich authored and Juergen Gross committed Sep 15, 2021
1 parent 7fd880a commit d859ed2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/xen/swiotlb-xen.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,6 @@ static const char *xen_swiotlb_error(enum xen_swiotlb_err err)
return "";
}

#define DEFAULT_NSLABS ALIGN(SZ_64M >> IO_TLB_SHIFT, IO_TLB_SEGSIZE)

int xen_swiotlb_init(void)
{
enum xen_swiotlb_err m_ret = XEN_SWIOTLB_UNKNOWN;
Expand Down

0 comments on commit d859ed2

Please sign in to comment.