Updated email mdc's email address
[gpxe.git] / src / core / timer.c
blob73dfa8ba29926d30164f1047cfb4618c99052b24
1 /* A couple of routines to implement a low-overhead timer for drivers */
3 /*
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation; either version 2, or (at
7 * your option) any later version.
8 */
10 #include "etherboot.h"
11 #include "timer.h"
13 /* Machine Independant timer helper functions */
15 void mdelay(unsigned int msecs)
17 unsigned int i;
18 for(i = 0; i < msecs; i++) {
19 udelay(1000);
23 void waiton_timer2(unsigned int ticks)
25 load_timer2(ticks);
26 while(timer2_running()) {