/* For short delays only. It will overflow after a few seconds.  */
void __udelay(unsigned long usec)
/* For short delays only. It will overflow after a few seconds.  */
void __udelay(unsigned long usec)
{
	unsigned long cycles;
	unsigned long base;
	unsigned long now;
	base = sysreg_read(COUNT);
	cycles = ((usec * (get_tbclk() / 10000)) + 50) / 100;
	do {
		now = sysreg_read(COUNT);
	} while ((now - base) < cycles);
}