From 2f70c49e5b9813635ad73666aa30f304c7fdeda9 Mon Sep 17 00:00:00 2001 From: Heiko Schocher Date: Tue, 10 Feb 2009 09:38:52 +0100 Subject: 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 Signed-off-by: Ben Warren --- include/common.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/common.h') diff --git a/include/common.h b/include/common.h index afee1889a..b75ea60b8 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); -- cgit v1.2.3