* Delay routines, using a pre-computed "loops_per_second" value.
*/
-extern __inline__ void __delay(unsigned long loops)
+static inline void __delay(unsigned long loops)
{
- __asm__ __volatile__ ("mov.l %0,er0\n\t"
- "1:\n\t"
- "dec.l #1,er0\n\t"
+ __asm__ __volatile__ ("1:\n\t"
+ "dec.l #1,%0\n\t"
"bne 1b"
- ::"r" (loops):"er0");
+ :"=r" (loops):"0"(loops));
}
/*
extern unsigned long loops_per_jiffy;
-extern __inline__ void udelay(unsigned long usecs)
+static inline void udelay(unsigned long usecs)
{
usecs *= 4295; /* 2**32 / 1000000 */
usecs /= (loops_per_jiffy*HZ);