lkml.org 
[lkml]   [2002]   [Feb]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 2.4.19-preX: What we really need: -AA patches finally in the tree
On Fri, 1 Mar 2002, Rik van Riel wrote:

> Not at all. The yield() function would just be a define to
> the code which no longer works with the new scheduler, ie:
>
> #define yield() \
> current->policy |= SCHED_YIELD; \
> schedule();

or better :

#define yield() \
do { \
current->policy |= SCHED_YIELD; \
schedule(); \
} while (0)


- Davide


-
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/

\
 
 \ /
  Last update: 2005-03-22 13:21    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site