diff options
| author | Robin Murphy <robin.murphy@arm.com> | 2026-01-12 15:46:38 +0000 |
|---|---|---|
| committer | Marek Szyprowski <m.szyprowski@samsung.com> | 2026-01-14 11:00:00 +0100 |
| commit | c6ccd098807483762ccd726e1498bac5a71d0005 (patch) | |
| tree | 38064d3e4ec8596bbf438a53e12fdcd904482669 /include/linux/can/dev/git@git.tavy.me:linux.git | |
| parent | 6626734dd2b151753e134730e27d17e64784c345 (diff) | |
dma/pool: Avoid allocating redundant pools
On smaller systems, e.g. embedded arm64, it is common for all memory
to end up in ZONE_DMA32 or even ZONE_DMA. In such cases it is redundant
to allocate a nominal pool for an empty higher zone that just ends up
coming from a lower zone that should already have its own pool anyway.
We already have logic to skip allocating a ZONE_DMA pool when that is
empty, so generalise that to save memory in the case of other zones too.
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Tested-by: Vladimir Kondratiev <vladimir.kondratiev@mobileye.com>
Reviewed-by: Baoquan He <bhe@redhat.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Link: https://lore.kernel.org/r/8ab8d8a620dee0109f33f5cb63d6bfeed35aac37.1768230104.git.robin.murphy@arm.com
Diffstat (limited to 'include/linux/can/dev/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
