summaryrefslogtreecommitdiffstats
path: root/src/core/misc.c
diff options
context:
space:
mode:
authorMichael Brown2008-03-10 14:02:53 +0100
committerMichael Brown2008-03-10 14:02:53 +0100
commit3e781eb87f7b5bfa638f94234bb5e9d64508b0a4 (patch)
tree5884ac0438320638c846166856a4b54b3564bd23 /src/core/misc.c
parent[PXE] Work around a buffer-size bug in WinPE (diff)
parentUse plain C in timer_rdtsc for division instead of inline asssembly. (diff)
downloadipxe-3e781eb87f7b5bfa638f94234bb5e9d64508b0a4.tar.gz
ipxe-3e781eb87f7b5bfa638f94234bb5e9d64508b0a4.tar.xz
ipxe-3e781eb87f7b5bfa638f94234bb5e9d64508b0a4.zip
Merge branch 'xl0-timer'
Diffstat (limited to 'src/core/misc.c')
-rw-r--r--src/core/misc.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/core/misc.c b/src/core/misc.c
index 4219a36c5..a54f5a108 100644
--- a/src/core/misc.c
+++ b/src/core/misc.c
@@ -4,20 +4,8 @@ MISC Support Routines
#include <stdlib.h>
#include <byteswap.h>
-#include <latch.h>
#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;
-}
+#include <gpxe/timer.h>
/**************************************************************************
INET_ATON - Convert an ascii x.x.x.x to binary form