2 * Precise Delay Loops for SuperH
4 * Copyright (C) 1999 Niibe Yutaka
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
;
17 void __udelay(unsigned long usecs
)
19 __const_udelay(usecs
* 0x000010c6); /* 2**32 / 1000000 */