> > > while( (jiffies-time_start) < 1 );
> >
> > you probably want to use schedule_timeout(deltajiffies). You must make
> > sure that you can reschedule at that point.
>
> If he is running in a bottom half or an interrupt handler, this wouldn't
> work. No task context to sleep on.
'You must make sure that you can reschedule at that point.'
> Depending on the definition of short, it may be easier to just put the code
> to execute on the tq_scheduler task queue. That will give a short delay
> between the interrupt or bottom half that will usually be less than a tick.
a timer is the best solution probably, if the necessery delay is bigger
than 10msec.
-- 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/