Re: Preemptive linux




David Schwartz wrote:
You only need to call 'preempt_check_resched' if
preemption might be disabled and you still want to be able to be
preempted at a particular point.

Did you mean thread can be preempted by timer interrupt (because of I
don't know any other way by which thread with infinite loop can be
preempted on UP machine)?

AFAIK, just for SMP systems thread can be marked by TIF_NEED_RESCHED
from timer_interrupt() but also not a really preempted...

.