> I use this to implement the wait function: > > void wait_func(int t) > { > unsigned long j; > > j=jiffies+t*HZ/100; > while(jiffies<j) > schedule(); > } >
There is are special sleep_on_timeout() and schedule_timeout() functions.
--
Manfred
-
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/