diff options
| author | Andrew Morton <akpm@zip.com.au> | 2002-07-04 08:31:00 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2002-07-04 08:31:00 -0700 |
| commit | b5b6fa5267d4e0da8b2f46904cec4d4f11c45d2e (patch) | |
| tree | 4309a6321e8eb764f479f92966f173543c5da064 /mm/page_alloc.c | |
| parent | b2bd3a26bbf30c69062d45de4622e7e5b412ad16 (diff) | |
[PATCH] set TASK_RUNNING in yield()
It seems that the yield() macro requires state TASK_RUNNING, but
practically none of the callers remember to do that.
The patch turns yield() into a real function which sets state
TASK_RUNNING before scheduling.
Diffstat (limited to 'mm/page_alloc.c')
| -rw-r--r-- | mm/page_alloc.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index cf914bd8180b..4d50db51b1b6 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -441,7 +441,6 @@ nopage: goto nopage; /* Yield for kswapd, and try again */ - __set_current_state(TASK_RUNNING); yield(); goto rebalance; } |
