Re: SCHED_YIELD undeclared with Trond's NFS patch w/2.4.19-pre2-ac2

From: Steven A. DuChene (linux-clusters@mindspring.com)
Date: Thu Mar 07 2002 - 09:20:12 EST


On Thu, Mar 07, 2002 at 09:00:59AM -0500, Richard B. Johnson wrote:
> You need to change loops that do something like:
>
> while(something)
> {
> current->policy |= SCHED_YIELD;
> schedule();
> }
>
> to:
>
> while(something)
> sys_sched_yield();
>

Thanks Richard! that did the trick

-- 
Steven A. DuChene      linux-clusters@mindspring.com
                      sduchene@mindspring.com

http://www.mindspring.com/~sduchene/ - 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