summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorHeiko Schocher <[email protected]>2013-12-19 13:45:04 +0100
committerTom Rini <[email protected]>2014-01-14 09:01:06 -0500
commit1b6102718bc5514cf974abeecebebe95c6a9ecc6 (patch)
tree2ebd35092871e6f5dce93498d9ad8e0899848aa3 /include/linux
parenta113fb39df43546c704aa8eba55720da9a9dfedd (diff)
common, env: optimize boottime
when creating the hashtable, for each environmentvariable getenv(ENV_CALLBACK_VAR) and getenv(ENV_FLAGS_VAR) is called, which costs at this point a lot of time. So call this two getenv() calls only once. Boottime on the ids8313 board without this patch: 2013-12-19 13:38:22,894: NAND: 128 MiB 2013-12-19 13:38:27,659: In: serial (~4.8 sec) Bootime with this patch on the ids8313 board: 2013-12-19 13:40:25,332: NAND: 128 MiB 2013-12-19 13:40:25,546: In: serial (~0.2 sec) Signed-off-by: Heiko Schocher <[email protected]> Cc: Tom Rini <[email protected]> Cc: Joe Hershberger <[email protected]> Cc: Wolfgang Denk <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions