]> err.no Git - linux-2.6/commitdiff
[PATCH] voyager: fix boot panic by adding topology export
authorJames Bottomley <James.Bottomley@SteelEye.com>
Fri, 24 Feb 2006 21:04:10 +0000 (13:04 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 24 Feb 2006 22:31:38 +0000 (14:31 -0800)
It looks like I can't get away without exporting topology functions from
voyager any longer, so add them to the voyager subarchitecture.

Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/i386/mach-voyager/voyager_basic.c

index aa49a33a572cf29ec5ff684d3f20d39fc7568efc..6761d294f2605f12fdb8528f55af4352da3429c3 100644 (file)
@@ -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 @@ void machine_power_off(void)
                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);