Messages in this thread | | | Date | Wed, 1 Dec 1999 16:14:53 +0100 (CET) | From | Ingo Molnar <> | Subject | Re: Q: waiting for a short time and not beeing a resource hog |
| |
On Wed, 1 Dec 1999, Andreas Schuldei wrote:
> I want to wait for a short time in a driver after I got an interrupt > that data arrived. > > I do not like the > > while( (jiffies-time_start) < 1 );
you probably want to use schedule_timeout(deltajiffies). You must make sure that you can reschedule at that point.
-- mingo
- 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/
| |