From: Alex B. <ker...@be...> - 2003-06-13 12:24:45
|
This is needed if your building IDE stuff on the 2.4 tree. Is there anyone who formally looks over the 2.4 CVS tree for comitting stuff or is submitting patches the mailing list likely to get picked up? [alex@cambridge linuxsh-2.4.new]$ cvs diff -u include/asm-sh/delay.h Index: include/asm-sh/delay.h =================================================================== RCS file: /cvsroot/linuxsh/linux/include/asm-sh/delay.h,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 delay.h --- include/asm-sh/delay.h 15 Oct 2001 20:45:06 -0000 1.1.1.1 +++ include/asm-sh/delay.h 13 Jun 2003 12:19:20 -0000 @@ -8,13 +8,19 @@ */ extern void __bad_udelay(void); +extern void __bad_ndelay(void); extern void __udelay(unsigned long usecs); +extern void __ndelay(unsigned long nsecs); 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)) + +#define ndelay(n) (__builtin_constant_p(n) ? \ + ((n) > 20000 ? __bad_ndelay() : __const_udelay((n) * 5ul)) : \ + __ndelay(n)) #endif /* __ASM_SH_DELAY_H */ -- Alex, homepage: http://www.bennee.com/~alex/ Wilner's Observation: All conversations with a potato should be conducted in private. |