From b5b6fa5267d4e0da8b2f46904cec4d4f11c45d2e Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Thu, 4 Jul 2002 08:31:00 -0700 Subject: [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. --- include/linux/sched.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'include/linux') 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. -- cgit v1.2.3