diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2021-03-22 18:53:49 -0700 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2021-04-01 20:46:38 +0000 |
commit | 2726bf3ff2520dba61fafc90a055640f7ad54e05 (patch) | |
tree | 97e589d7005a07c5b58f4f0f6650f0c0a1645469 /drivers/spi | |
parent | fcf044891c84e38fc90eb736b818781bccf94e38 (diff) |
swiotlb: Make SWIOTLB_NO_FORCE perform no allocation
When SWIOTLB_NO_FORCE is used, there should really be no allocations of
default_nslabs to occur since we are not going to use those slabs. If a
platform was somehow setting swiotlb_no_force and a later call to
swiotlb_init() was to be made we would still be proceeding with
allocating the default SWIOTLB size (64MB), whereas if swiotlb=noforce
was set on the kernel command line we would have only allocated 2KB.
This would be inconsistent and the point of initializing default_nslabs
to 1, was intended to allocate the minimum amount of memory possible, so
simply remove that minimal allocation period.
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'drivers/spi')
0 files changed, 0 insertions, 0 deletions