kernels/linux-2.4.0/drivers/net/tokenring/tms380tr.c
/*
 * Wait for some time (microseconds)
 */
Wait for some time (microseconds)
Wait for some time ( microseconds )
void tms380tr_wait(unsigned long time)
{
#if 0
	long tmp;
	tmp = jiffies + time/(1000000/HZ);
	do {
  		current->state 		= TASK_INTERRUPTIBLE;
		tmp = schedule_timeout(tmp);
	} while(time_after(tmp, jiffies));
#else
	udelay(time);
#endif
	return;
}
void tms380tr_wait ( unsigned long time ) { #if 0 long tmp ; tmp = jiffies + time / ( 1000000 / HZ ) ; do { current -> state = TASK_INTERRUPTIBLE ; tmp = schedule_timeout ( tmp ) ; } while ( time_after ( tmp , jiffies ) ) ; #else udelay ( time ) ; #endif return ; }
Wait for some time (microseconds)
Wait for some time ( microseconds )