patch-2.1.56 linux/kernel/exit.c

Next file: linux/mm/filemap.c
Previous file: linux/include/linux/tty_flip.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.55/linux/kernel/exit.c linux/kernel/exit.c
@@ -132,8 +132,9 @@
 	if (p != current) {
 #ifdef __SMP__
 		/* FIXME! Cheesy, but kills the window... -DaveM */
-		while (p->has_cpu)
+		do {
 			barrier();
+		} while (p->has_cpu);
 		spin_unlock_wait(&scheduler_lock);
 #endif
 		charge_uid(p, -1);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov