Ok. I didn't make 2.4.0 in 2000. Tough. I tried, but we had some
[davej-history.git] / arch / sh / lib / delay.c
blobcadd7367e7ccf6915a89e9770cdcafef5755ec71
1 /*
2 * Precise Delay Loops for SuperH
4 * Copyright (C) 1999 Niibe Yutaka
5 */
7 #include <linux/sched.h>
8 #include <linux/delay.h>
10 inline void __const_udelay(unsigned long xloops)
12 xloops *= current_cpu_data.loops_per_sec;
13 __delay(xloops);
16 #if 0
17 void __udelay(unsigned long usecs)
19 __const_udelay(usecs * 0x000010c6); /* 2**32 / 1000000 */
21 #endif