Re: sleep in microsecond granularity in linux

From: David Brown
Date: Tue Jan 18 2011 - 19:11:52 EST


On Tue, Jan 18 2011, Leo Prasath wrote:

> Is it possible to sleep in granularity of microseconds ?
> From what i know, there is msleep() which can sleep in milliseconds
> and there is udelay() which busy waits for time in microsecond
> granularity.
> But I need to sleep ( not busy wait ) for granularity of microseconds ...

usleep_range() See Documentation/timers/timers-howto.txt for info, and
caveats.

David

--
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/