[lkml]   [2002]   [Aug]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH] fix bug in yield()
This patch makes yield() actually call schedule.

Without this patch, 2.4.20-pre3 will hang on boot for me, looping in
spawn_ksoftirqd waiting for ksoftirqd to start and calling yield().
ksoftirqd never gets to run, however, because yield never actually
calls schedule. (Note that sys_sched_yield as a syscall is OK because
the syscall exit path will check current->need_resched and call


diff -urN linux-2.4/kernel/sched.c pmac/kernel/sched.c
--- linux-2.4/kernel/sched.c Wed Aug 7 18:10:01 2002
+++ pmac/kernel/sched.c Mon Aug 19 10:39:39 2002
@@ -1081,6 +1081,7 @@
+ schedule();

void __cond_resched(void)
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:28    [W:0.032 / U:6.368 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site