summaryrefslogtreecommitdiff
path: root/include/usbroothubdes.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-05-22 11:05:27 (GMT)
committerTom Rini <trini@konsulko.com>2017-06-05 18:13:05 (GMT)
commit03ecac314988c01c3df0c935afaacc8fce229224 (patch)
tree4affe3e2698cce4a4248b0867980b202be752049 /include/usbroothubdes.h
parentcbcd6970ad802b8b6c5acf79d42a870256b62fbb (diff)
downloadu-boot-fsl-qoriq-03ecac314988c01c3df0c935afaacc8fce229224.tar.xz
bootstage: Use rec_count as the array index
At present bootstage has a large array with all possible bootstage IDs recorded. It adds times to the array element indexed by the ID. This is inefficient because many IDs are not used during boot. We can save space by only recording those IDs which actually have timestamps. Update the array to use a record count, which increments with each addition of a new timestamp. This takes longer to record a time, since it may involve an array search. Such a search may be particularly expensive before relocation when the CPU is running slowly or the cache is off. But at that stage there should be very few records. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/usbroothubdes.h')
0 files changed, 0 insertions, 0 deletions