diff options
author | Julius Werner <jwerner@chromium.org> | 2024-06-25 13:08:43 -0700 |
---|---|---|
committer | Julius Werner <jwerner@chromium.org> | 2024-06-27 00:29:17 +0000 |
commit | c20c83ca1bdd4521156fc1974c1e38bc8b9a55d7 (patch) | |
tree | 5961739b59156c513e65ac69ee768f66a291c20f /src/mainboard/lenovo/x201/board_info.txt | |
parent | 3aea34a9933f7884a2c08b9611f7b3ff9d791b1d (diff) |
commonlib/device_tree: Improve node and property allocation speed
Now that the device tree code has been made available in libpayload, we
should reintroduce the node and property allocation optimization for
libpayload's memory allocator that was originally dropped when porting
this code from depthcharge to coreboot.
On a Qualcomm SC7180 unflattening a normal ChromeOS kernel device tree,
this saves roughly ~145ms. The total scratch space used is about ~1350
nodes and ~5200 properties, so we leave a little room to grow with the
constants hardcoded here.
Change-Id: I0f4d80a8b750febfb069b32ef47304ccecdc35af
Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/83208
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Maximilian Brune <maximilian.brune@9elements.com>
Reviewed-by: Raul Rangel <rrangel@chromium.org>
Diffstat (limited to 'src/mainboard/lenovo/x201/board_info.txt')
0 files changed, 0 insertions, 0 deletions