summaryrefslogtreecommitdiffstats
path: root/src/core/misc.c
diff options
context:
space:
mode:
authorAlexey Zaytsev2007-12-01 05:07:01 +0100
committerAlexey Zaytsev2008-03-02 01:15:07 +0100
commit4006d229e50204c93c1aa04c58385ce2e66d597e (patch)
tree1c07ed3523e40304e0c4b81aaa33c6316d1bd11a /src/core/misc.c
parent[DHCP] Fix RFC4390 client identifier constructions. (diff)
downloadipxe-4006d229e50204c93c1aa04c58385ce2e66d597e.tar.gz
ipxe-4006d229e50204c93c1aa04c58385ce2e66d597e.tar.xz
ipxe-4006d229e50204c93c1aa04c58385ce2e66d597e.zip
Introduce the new timer subsystem.
Timer subsystem initialization code in core/timer.c Split the BIOS and RTDSC timer drivers from i386_timer.c Split arch/i386/firmware/pcbios/bios.c into the RTSDC timer driver and arch/i386/core/nap.c Split the headers properly: include/unistd.h - delay functions to be used by the gPXE core and drivers. include/gpxe/timer.h - the fimer subsystem interface to be used by the timer drivers and currticks() to be used by the code gPXE subsystems. include/latch.h - removed include/timer.h - scheduled for removal. Some driver are using currticks, which is only for core subsystems. Signed-off-by: Alexey Zaytsev <alexey.zaytsev@gmail.com>
Diffstat (limited to 'src/core/misc.c')
-rw-r--r--src/core/misc.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/core/misc.c b/src/core/misc.c
index 4219a36c..fcf0aeab 100644
--- a/src/core/misc.c
+++ b/src/core/misc.c
@@ -8,18 +8,6 @@ MISC Support Routines
#include <gpxe/in.h>
/**************************************************************************
-SLEEP
-**************************************************************************/
-unsigned int sleep(unsigned int secs)
-{
- unsigned long tmo;
-
- for (tmo = currticks()+secs*TICKS_PER_SEC; currticks() < tmo; ) {
- }
- return 0;
-}
-
-/**************************************************************************
INET_ATON - Convert an ascii x.x.x.x to binary form
**************************************************************************/
int inet_aton ( const char *cp, struct in_addr *inp ) {