Messages in this thread | | | Date | Mon, 14 Aug 2000 18:26:17 +0100 | From | Philipp Rumpf <> | Subject | Re: Implementing sleep() inside the kernel |
| |
On Mon, Aug 14, 2000 at 09:11:14AM -0700, Aamir Shaikh wrote: > Hi, > I'm trying to implement some sleep inside the kernel that would sleep > for some microseconds before sending packets out on the network... > Is there a way this can be implemented without using a dumb spin loop... > I don't want to tie up my processor down...
If you sleep for more than 1/HZ seconds you can use timers. If you don't you have to use udelay, at least currently.
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |