Skip to contentSkip to conversation

Fix boot panic by adding topology export to voyager

PATCH New James Bottomley 1 participant 1 message Feb 22, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix boot panic by adding topology export to voyager

It looks like I can't get away without exporting topology functions from voyager any longer, so add them to the voyager subarchitecture.

---

James

arch/i386/mach-voyager/voyager_basic.c +15 -0
Index: BUILD-2.6/arch/i386/mach-voyager/voyager_basic.c
===================================================================
@@ -23,6 +23,9 @@
 #include <linux/delay.h>
 #include <linux/reboot.h>
 #include <linux/sysrq.h>
+#include <linux/smp.h>
+#include <linux/nodemask.h>
+#include <asm/cpu.h>
 #include <asm/io.h>
 #include <asm/voyager.h>
 #include <asm/vic.h>
@@ -329,3 +332,15 @@
 		pm_power_off();
 }
 
+static struct i386_cpu cpu_devices[NR_CPUS];
+
+static int __init topology_init(void)
+{
+	int i;
+
+	for_each_present_cpu(i)
+		register_cpu(&cpu_devices[i].cpu, i, NULL);
+	return 0;
+}
+
+subsys_initcall(topology_init);