> You need to change loops that do something like:
>
> while(something)
> {
> current->policy |= SCHED_YIELD;
> schedule();
> }
>
> to:
>
> while(something)
> sys_sched_yield();
>
such loops are a great way to create livelock and other nasties in the
kernel
and should be avoided at all cost (esp if you use preemptable kernels)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Thu Mar 07 2002 - 21:01:03 EST