lmb: Rename free_mem to available_mem

free_mem is a misnomer. We never update it with the free memory for
LMB. Instead, it describes all available memory and is checked against
used_mem to decide whether an area is free or not.

So let's rename this field to better match its usage.

Reviewed-by: Sam Protsenko <semen.protsenko@linaro.org>
Tested-by: Sam Protsenko <semen.protsenko@linaro.org>
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
This commit is contained in:
Ilias Apalodimas
2024-12-18 09:02:33 +02:00
committed by Tom Rini
parent 900a8951c3
commit 400c34db89
4 changed files with 21 additions and 21 deletions

View File

@@ -45,12 +45,12 @@ struct lmb_region {
/**
* struct lmb - The LMB structure
* @free_mem: List of free memory regions
* @available_mem: List of memory available to LMB
* @used_mem: List of used/reserved memory regions
* @test: Is structure being used for LMB tests
*/
struct lmb {
struct alist free_mem;
struct alist available_mem;
struct alist used_mem;
bool test;
};