patch-2.1.34 linux/arch/sparc64/kernel/devices.c

Next file: linux/arch/sparc64/kernel/dtlb_miss.S
Previous file: linux/arch/sparc64/kernel/cpu.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.33/linux/arch/sparc64/kernel/devices.c linux/arch/sparc64/kernel/devices.c
@@ -11,8 +11,8 @@
 
 #include <asm/page.h>
 #include <asm/oplib.h>
-#include <asm/smp.h>
 #include <asm/system.h>
+#include <asm/smp.h>
 
 struct prom_cpuinfo linux_cpus[NCPUS];
 int linux_num_cpus;
@@ -31,6 +31,8 @@
 
 	if(strcmp(node_str, "cpu") == 0) {
 		cpu_nds[0] = prom_root_node;
+		linux_cpus[0].prom_node = prom_root_node;
+		linux_cpus[0].mid = 0;
 		cpu_ctr++;
 	} else {
 		int scan;

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