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 /include | |
| 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 'include')
| -rw-r--r-- | include/linux/sched.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 9b5af2cc11d2..29410b021b6c 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -418,8 +418,7 @@ extern int task_prio(task_t *p); extern int task_nice(task_t *p); extern int idle_cpu(int cpu); -asmlinkage long sys_sched_yield(void); -#define yield() sys_sched_yield() +void yield(void); /* * The default (Linux) execution domain. |
