patch-1.3.13 linux/kernel/sched.c

Next file: linux/lib/string.c
Previous file: linux/kernel/ksyms.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.12/linux/kernel/sched.c linux/kernel/sched.c
@@ -120,7 +120,11 @@
 	}
 #endif
 	if (p == &init_task) {
-		printk("idle task may not sleep\n");
+		static int nr = 0;
+		if (nr < 5) {
+			nr++;
+			printk("idle task may not sleep\n");
+		}
 		return;
 	}
 	nr_running--;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this