patch-2.4.22 linux-2.4.22/arch/mips/sibyte/sb1250/smp.c

Next file: linux-2.4.22/arch/mips/sibyte/sb1250/time.c
Previous file: linux-2.4.22/arch/mips/sibyte/sb1250/setup.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.21/arch/mips/sibyte/sb1250/smp.c linux-2.4.22/arch/mips/sibyte/sb1250/smp.c
@@ -108,6 +108,9 @@
 	CPUMASK_SETB(cpu_online_map, 0);
 	atomic_set(&cpus_booted, 1);  /* Master CPU is already booted... */
 	init_idle();
+	__cpu_number_map[0] = 0;
+	__cpu_logical_map[0] = 0;
+	/* smp_tune_scheduling();  XXX */
 
 	/*
 	 * This loop attempts to compensate for "holes" in the CPU
@@ -128,9 +131,6 @@
 		p->processor = i;
 		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);
-		p->active_mm = &init_mm;
 		init_tasks[i] = p;
 
 		del_from_runqueue(p);
@@ -144,6 +144,8 @@
 					    (unsigned long)p);
 		} while (!retval && (cur_cpu < NR_CPUS));
 		if (retval) {
+			__cpu_number_map[cur_cpu] = i;
+			__cpu_logical_map[i] = cur_cpu;
 			i++;
 		} else {
 			panic("CPU discovery disaster");

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