]> git.sur5r.net Git - u-boot/commit
netloop: speed up NetLoop
authorHeiko Schocher <hs@denx.de>
Tue, 10 Feb 2009 08:38:52 +0000 (09:38 +0100)
committerBen Warren <biggerbadderben@gmail.com>
Mon, 23 Feb 2009 07:49:33 +0000 (23:49 -0800)
commit2f70c49e5b9813635ad73666aa30f304c7fdeda9
tree57b6d6625de2648dab93e71cf74a7329c81c6adc
parentad2d16393e9f684e4a9255f42e8bfdd819b67a87
netloop: speed up NetLoop

NetLoop polls every cycle with getenv some environment variables.
This is horribly slow, especially when the environment is big.

This patch reads only the environment variables in NetLoop,
when they were changed.

Also moved the init part of the NetLoop function in a seperate
function.

Signed-off-by: Heiko Schocher <hs@denx.de>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
common/cmd_nvedit.c
include/common.h
net/eth.c
net/net.c