--- 2.4.19pre9aa1/net/tux/main.c.~1~ Wed May 29 22:54:09 2002 +++ 2.4.19pre9aa1/net/tux/main.c Thu May 30 00:21:25 2002 @@ -393,8 +393,7 @@ static int wait_for_others (void) unsigned int cpu; repeat: - current->policy |= SCHED_YIELD; - schedule(); + yield(); for (cpu = 0; cpu < nr_tux_threads; cpu++) { ti = threadinfo + cpu; @@ -418,10 +417,8 @@ static void zap_listen_sockets (threadin struct socket *sock; sock = ti->listen[i].sock; - while (waitqueue_active(sock->sk->sleep)) { - current->policy |= SCHED_YIELD; - schedule(); - } + while (waitqueue_active(sock->sk->sleep)) + yield(); sock_release(sock); } ti->listen[i].sock = NULL;