Re: Implementing sleep() inside the kernel

From: Philipp Rumpf (prumpf@parcelfarce.linux.theplanet.co.uk)
Date: Mon Aug 14 2000 - 13:26:17 EDT

  • Next message: Christoph Hellwig: "Re: [PATCH]2.4.0-test7-3 Makefile"

    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/



    This archive was generated by hypermail 2b29 : Mon Aug 14 2000 - 13:29:01 EDT