lmb: optimise the lmb allocation functions
authorSughosh Ganu <sughosh.ganu@linaro.org>
Mon, 3 Mar 2025 13:32:31 +0000 (19:02 +0530)
committerTom Rini <trini@konsulko.com>
Tue, 18 Mar 2025 01:39:27 +0000 (19:39 -0600)
commit2bf5811e22efffe37bf5dccb8d13529c51fc65dd
treea56e594b179e8d846a56cc588d9e1a8e84bd01af
parentfa5b4f5a5f99d1f4ab995d07845d2bff50aaabb7
lmb: optimise the lmb allocation functions

The actual logic to allocate a region of memory is in the
_lmb_alloc_base() function. The lmb_alloc() API function calls
lmb_alloc_base(), which then calls _lmb_alloc_base() to do the
allocation. Instead, call the _lmb_alloc_base() directly from both the
allocation API's, and move the error message to the _lmb_alloc_base().

Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
lib/lmb.c