diff options
| author | Aneesh Kumar K.V (Arm) <aneesh.kumar@kernel.org> | 2026-09-24 11:37:50 +0530 |
|---|---|---|
| committer | Marek Szyprowski <m.szyprowski@samsung.com> | 2026-10-09 17:12:06 +0200 |
| commit | d5093dbca79110c3180fa7119533cff86affdf0d (patch) | |
| tree | e3b30ea33075fa36a8b875a651988b839f039037 /kernel/taskstats.c | |
| parent | 5b944c36746be496346cdb63ebb31522791d403c (diff) | |
| download | linux-next-d5093dbca79110c3180fa7119533cff86affdf0d.tar.gz linux-next-d5093dbca79110c3180fa7119533cff86affdf0d.zip | |
dma: swiotlb: Consolidate slab rounding
Pass the area count explicitly to swiotlb_calc_nslabs() and keep the
calculation separate from updates to the default_nslabs . Move the
default_nslabs update into swiotlb_adjust_nareas().
Round slabs to a power of two even before the area count is initialized.
For early swiotlb_adjust_size() calls, this moves rounding from area
initialization to size adjustment, so early queries see the rounded
size.
Signed-off-by: Aneesh Kumar K.V (Arm) <aneesh.kumar@kernel.org>
Link: https://lore.kernel.org/r/20260924060756.1325156-3-aneesh.kumar@kernel.org
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Diffstat (limited to 'kernel/taskstats.c')
0 files changed, 0 insertions, 0 deletions
