Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 847 → Rev 1044

/shark/trunk/drivers/linuxc26/include/asm/delay.h
15,12 → 15,19
extern void __const_udelay(unsigned long usecs);
extern void __delay(unsigned long loops);
 
#define udelay(n) (__builtin_constant_p(n) ? \
((n) > 20000 ? __bad_udelay() : __const_udelay((n) * 0x10c6ul)) : \
__udelay(n))
/**
* Remap on linking traps and longer delays removed.
* Should not be needed in Shark.
*/
 
//#define udelay(n) (__builtin_constant_p(n) ? \
// ((n) > 20000 ? __bad_udelay() : __const_udelay((n) * 0x10c6ul)) : \
// __udelay(n))
#define udelay(n) __udelay(n)
#define ndelay(n) (__builtin_constant_p(n) ? \
((n) > 20000 ? __bad_ndelay() : __const_udelay((n) * 5ul)) : \
__ndelay(n))
//#define ndelay(n) (__builtin_constant_p(n) ? \
// ((n) > 20000 ? __bad_ndelay() : __const_udelay((n) * 5ul)) : \
// __ndelay(n))
#define ndelay(n) __ndelay(n)
 
#endif /* defined(_I386_DELAY_H) */