summaryrefslogtreecommitdiff
path: root/include/lmb.h
diff options
context:
space:
mode:
authorIlias Apalodimas <ilias.apalodimas@linaro.org>2024-12-18 09:02:33 +0200
committerTom Rini <trini@konsulko.com>2024-12-30 13:21:55 -0600
commit400c34db8957bbe49b15dcc0310697f829c63e01 (patch)
tree6719b204d1bf23460d93f1d9ace69165f5089211 /include/lmb.h
parent900a8951c3b6035c25632438ebc7240cbc77883c (diff)
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>
Diffstat (limited to 'include/lmb.h')
-rw-r--r--include/lmb.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/lmb.h b/include/lmb.h
index 3abe24deb56..18030c610ab 100644
--- a/include/lmb.h
+++ b/include/lmb.h
@@ -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;
};