2.4-ac: sched_yield()
PATCH 1/1 2.4-ac: sched_yield()
Hi Alan,
Following is a set of scheduler updates from 2.5. All should be sane and safe. I would prefer to toss you obviously correct/tested bits in pieces than a large single update. You can also get all of these at:
ftp://ftp.kernel.org/pub/linux/kernel/people/rml/sched/for_alan
Anyhow...
Attached patch gets sched_yield() right, fixing all outstanding issues. Really. (from Ingo)
Also implement 2.5's yield() which sets task->state to be safe. (from akpm)
Patch is against 2.4.20-pre5-ac4, please apply.
Robert Love
include/linux/sched.h +1 -3
@@ -486,9 +486,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() +extern void yield (void );/* * The default (Linux) execution domain.
kernel/ksyms.c +1 -1
@@ -455,7 +455,7 @@EXPORT_SYMBOL (interruptible_sleep_on_timeout);EXPORT_SYMBOL (schedule);EXPORT_SYMBOL (schedule_timeout); -EXPORT_SYMBOL (sys_sched_yield); +EXPORT_SYMBOL (yield);EXPORT_SYMBOL (set_user_nice);EXPORT_SYMBOL (task_nice);EXPORT_SYMBOL_GPL (idle_cpu);
kernel/sched.c +26 -29
78 lines not on this page · raw message