[U-Boot] fdt performance

Aaron Williams Aaron.Williams at caviumnetworks.com
Thu Oct 17 08:24:04 CEST 2013


Hi all,

In our bootloader based off of 2013.07 we make extensive use of the flat 
device tree. In profiling our bootloader in our simulator I found that 
the function eating up the most time is fdt_next_tag. Looking at it, 
especially fdt_offset_ptr, it looks like there is a lot of room for 
improvement especially in the skip name section.

Some of the checks in fdt_offset_ptr also look useless, such as if 
((offset + len) < offset) which will always be false, or
if (p + len < p)

len is always positive.

-Aaron

-- 
Aaron Williams
Software Engineer
Cavium, Inc.
(408) 943-7198  (510) 789-8988 (cell)



More information about the U-Boot mailing list