net: bugfix: NetSetTimeout assumes CONFIG_SYS_HZ=1000

NetSetTimeout sets incorrect value to timeDelta when CONFIG_SYS_HZ != 1000.

Signed-off-by: Tetsuyuki Kobayashi <koba@kmckk.co.jp>
master
Tetsuyuki Kobayashi 12 years ago committed by Joe Hershberger
parent 46c07bcf12
commit 1389f98fce
  1. 2
      net/net.c

@ -652,7 +652,7 @@ NetSetTimeout(ulong iv, thand_f *f)
"--- NetLoop timeout handler set (%p)\n", f);
timeHandler = f;
timeStart = get_timer(0);
timeDelta = iv;
timeDelta = iv * CONFIG_SYS_HZ / 1000;
}
}

Loading…
Cancel
Save