summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Morton <akpm@zip.com.au>2002-07-04 08:31:00 -0700
committerLinus Torvalds <torvalds@home.transmeta.com>2002-07-04 08:31:00 -0700
commitb5b6fa5267d4e0da8b2f46904cec4d4f11c45d2e (patch)
tree4309a6321e8eb764f479f92966f173543c5da064 /include
parentb2bd3a26bbf30c69062d45de4622e7e5b412ad16 (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.h3
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.