patch-2.4.15 linux/arch/mips/kernel/smp.c

Next file: linux/arch/mips64/sgi-ip27/ip27-init.c
Previous file: linux/arch/ia64/tools/print_offsets.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.14/linux/arch/mips/kernel/smp.c linux/arch/mips/kernel/smp.c
@@ -126,7 +126,7 @@
 
 		/* Schedule the first task manually */
 		p->processor = i;
-		p->has_cpu = 1;
+		p->cpus_runnable = 1 << i; /* we schedule the first task manually */
 
 		/* Attach to the address space of init_task. */
 		atomic_inc(&init_mm.mm_count);
@@ -155,7 +155,7 @@
 		sprintf(p->comm, "%s%d", "Idle", i);
 		init_tasks[i] = p;
 		p->processor = i;
-		p->has_cpu = 1; /* we schedule the first task manually */
+		p->cpus_runnable = 1 << i; /* we schedule the first task manually *
 		del_from_runqueue(p);
 		unhash_process(p);
 		/* Attach to the address space of init_task. */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)