summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2023-01-25 18:08:23 -0500
committerTom Rini <trini@konsulko.com>2023-02-06 12:07:18 -0500
commit007ae5d108a37564905ea1588cb279f3a522cc3d (patch)
tree7a8b8e56acea58ebf899453d0398b4b4aeaf3c5f /lib
parentf8f47e6ff214a3ba7a61025bcc4dc058f507c279 (diff)
downloadu-boot-007ae5d108a37564905ea1588cb279f3a522cc3d.tar.gz
lmb: Default to not-LMB_USE_MAX_REGIONS
The LMB code allows for picking a hard limit on the number of regions it can know of, or to dynamically allocate these regions. The reason for this choice is to allow for the compiler to perform a size optimization in the common case. This optimization however, is very small, ranging from 196 bytes to 15 bytes saved, or in some cases, being larger. Now that we also have more regions covered by LMB (in order to protect various parts of our self at run time), the default of 8 is also much easier to hit and leads to non-obvious error messages (which imply that an area is protected, not that we're out of areas to add to the list). Switch to the dynamic use as the default. Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/Kconfig1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/Kconfig b/lib/Kconfig
index 549bd35778..59e4304afd 100644
--- a/lib/Kconfig
+++ b/lib/Kconfig
@@ -1028,7 +1028,6 @@ config LMB
config LMB_USE_MAX_REGIONS
bool "Use a common number of memory and reserved regions in lmb lib"
depends on LMB
- default y
help
Define the number of supported memory regions in the library logical
memory blocks.