> Thanks for the udelay() answer... I've got another one now:
> I'm "adapting" the Solaris driver's ioctl() routines to linux and have
> been seeing this function a lot: drv_usectohz() which onverts microseconds
> to clock ticks. It seems to be used in timeouts and such. Is there an
> equivalent function (I couldn't find anything that matched with a grep),
> or should I be using something else to get similar numbers.
just use:
#define drv_usectohz(x) ((x)*HZ/1000000)
-- mingo