summaryrefslogtreecommitdiff
path: root/include/common.h
diff options
context:
space:
mode:
authorHeiko Schocher <hs@denx.de>2009-02-10 09:38:52 +0100
committerBen Warren <biggerbadderben@gmail.com>2009-02-22 23:49:33 -0800
commit2f70c49e5b9813635ad73666aa30f304c7fdeda9 (patch)
tree57b6d6625de2648dab93e71cf74a7329c81c6adc /include/common.h
parentad2d16393e9f684e4a9255f42e8bfdd819b67a87 (diff)
downloadu-boot-2f70c49e5b9813635ad73666aa30f304c7fdeda9.tar.gz
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>
Diffstat (limited to 'include/common.h')
-rw-r--r--include/common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h
index afee1889a0..b75ea60b88 100644
--- a/include/common.h
+++ b/include/common.h
@@ -269,6 +269,7 @@ void forceenv (char *, char *);
#ifdef CONFIG_AUTO_COMPLETE
int env_complete(char *var, int maxv, char *cmdv[], int maxsz, char *buf);
#endif
+int get_env_id (void);
void pci_init (void);
void pci_init_board(void);