On Wed, Aug 11, 2010 at 02:35:49PM +0300, Antti Kantee wrote: > delay is a busyloop while kpause yields. You cannot use the latter > without thread context (i.e. in a hard interrupt). delay is not really > preferrable, but if *must* use it: a) when you don't have thread context > b) if you're doing something performance/timing critical and can't afford > the jitter and inaccuracy from a sleep. > > [...] > > (although I guess the point about nothing being able to run is not true > anymore with kernel preemption)
If (b) is going to remain workable it had better disable preemption... -- David A. Holland dholl...@netbsd.org