patch-2.1.120 linux/kernel/sched.c

Next file: linux/mm/swap_state.c
Previous file: linux/kernel/fork.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.119/linux/kernel/sched.c linux/kernel/sched.c
@@ -844,8 +844,7 @@
 
 	read_lock(&tasklist_lock);
 	for_each_task(p) {
-		if (p->pid &&
-		    (p->state == TASK_RUNNING ||
+		if ((p->state == TASK_RUNNING ||
 		     p->state == TASK_UNINTERRUPTIBLE ||
 		     p->state == TASK_SWAPPING))
 			nr += FIXED_1;

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